Commit Graph

45744 Commits (480ce84b8ab696fd9adb47726f02503ce593053f)

Author SHA1 Message Date
epenet 340146e5fb
Add update listener type hints to coinbase (#65414)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-03 01:25:51 +01:00
GitHub Action 256ad084c5 [ci skip] Translation update 2022-02-03 00:14:18 +00:00
Colin Robbins 83fa4df641
Fix Shodan sensor (#65443) 2022-02-02 20:44:16 +01:00
epenet 494ef2f9b2
Adjust config_entry UpdateListenerType signature (#65410)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-02 09:56:34 -08:00
Tobias Sauerwein 81ad56b8ad
Add events on cloud connect and disconnect (#65215)
* Add events on cloud connect and disconnect

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Use event capture helper

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Provide listener method instead of public event

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Add test for disconnect notification

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use Enum

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Add module level api

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Clean up dead code

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Flake8

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-02 18:11:06 +01:00
Erik Montnemery fda0fbd115
Stringify MQTT payload in mqtt/debug/info WS response (#65429) 2022-02-02 18:08:48 +01:00
Erik Montnemery 5a34feb7de
Don't warn on time.sleep injected by the debugger (#65420) 2022-02-02 08:58:14 -08:00
Stefan Agner c8e64358b1
Set last_reset for integrated entities in IoTaWatt (#65143)
* Set last_reset for integrated entities

For entities which integrate over time (like energy in watt hours) the
iotawattpy library uses the beginning of the year as start date by
default (using relative time specification "y", see [1]). Since
PR #56974 state class has been changed from TOTAL_INCREASING to TOTAL.
However, the relative start date of "y" causes the value to reset to
zero at the beginning of the year.

This fixes it by setting last_reset properly, which takes such resets
into account.

While at it, let's set the cycle to one day. This lowers the load on
IoTaWatt (fetching with start date beginning of the day seems to
response faster than beginning of the year).

[1]: https://docs.iotawatt.com/en/master/query.html#relative-time

* Update homeassistant/components/iotawatt/sensor.py
* Update homeassistant/components/iotawatt/coordinator.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-02-02 17:39:33 +01:00
J. Nick Koston 530fc8a9af
Ensure unifiprotect discovery can be ignored (#65406) 2022-02-02 16:16:29 +01:00
Jan Bouwhuis 2c07330794
Fix MQTT expire_after effects after reloading (#65359)
* Cleanup sensor expire triggers after reload

* fix test binary_sensor

* Also trigger cleanup parent classes

* Restore an expiring state after a reload

* correct discovery_update

* restore expiring state with remaining time

* Update homeassistant/components/mqtt/binary_sensor.py

description

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Log remaining time

* Move check

* check and tests reload

* remove self.async_write_ha_state()

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-02 16:14:52 +01:00
Bram Kragten 9ce2e9e8f4
Update frontend to 20220202.0 (#65432) 2022-02-02 16:08:16 +01:00
Erik Montnemery 0eb2caabcf
Report unmet dependencies for failing config flows (#65061)
* Report unmet dependencies for failing config flows

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/setup.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Modify error message

* Add test

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-02 15:06:27 +01:00
Maikel Punie 40c727df66
Bump velbus-aio to 2022.2.1 (#65422) 2022-02-02 14:38:19 +01:00
G Johansson 8448462720
Rewrite sensibo integration (#64753)
* Rewrite sensibo integration

* Fixing CI

* coordinator in untested

* Fix review comments

* Additional review fixes

* Fix all conversations

* Remove extra state attributes

* Restore assumed state service

* Fix async_assume_state
2022-02-02 13:09:42 +01:00
epenet a63e5c7ded
Add type hints for config entry update listeners (#65412) 2022-02-02 03:36:04 -06:00
Erik Montnemery 627be81531
Import registries in MQTT mixins (#65411) 2022-02-02 10:32:11 +01:00
Josh Shoemaker 4a55d58d6d
Bump aladdin_connect to 0.4 to fix integration for some users due to API changes (#65407) 2022-02-02 09:29:05 +01:00
jjlawren 4794625048
Detect battery-operated Sonos devices going offline (#65382) 2022-02-01 22:11:21 -06:00
jjlawren c80d6810b3
Fix Sonos diagnostics with offline device (#65393)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-01 22:10:53 -06:00
J. Nick Koston 3da60355a9
Bump lutron_caseta to 0.13.1 to fix setup when no button devices are present (#65400) 2022-02-01 19:19:24 -06:00
GitHub Action ff2f135f55 [ci skip] Translation update 2022-02-02 00:15:13 +00:00
J. Nick Koston 73189ead1f
Handle brightness being None for senseme (#65372) 2022-02-01 14:51:28 -08:00
Pierre Ståhl e2935b55ae
Fix disconnect bug in Apple TV integration (#65385) 2022-02-01 15:44:06 -06:00
Pierre Ståhl 476a694248
Sort Apple TV app list by name (#65386) 2022-02-01 15:30:28 -06:00
Tobias Sauerwein 3718d7fca8
Add Netatmo error logging when no public stations are available (#65298)
* Log error if public stations don't provide data

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Only log once

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-02-01 22:06:03 +02:00
Jc2k 9f5d77e0df
Add missing type hints to homekit_controller (#65368) 2022-02-01 13:30:37 -06:00
Paulus Schoutsen aef6f49eff
Bump frontend to 20220201.0 (#65380) 2022-02-01 09:58:23 -08:00
Michael 1b8252fa2f
Fix wan_access switch for disconnected devices in Fritz!Tools (#65378) 2022-02-01 09:57:34 -08:00
Robert Svensson 69ac59ce73
Redact host address in UniFi diagnostics (#65379) 2022-02-01 09:52:56 -08:00
Bram Kragten c82aa1606a
Allow removing keys from automation (#65374) 2022-02-01 09:45:08 -08:00
schreyack 3c0369ed59
Fix honeywell hold mode (#65327)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-01 09:11:09 -08:00
Martin Hjelmare 3697f5611c
Fix tradfri coordinator error handling (#65204) 2022-02-01 09:09:51 -08:00
ZuluWhiskey 65ea54927d
Fix MotionEye config flow (#64360)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-01 09:05:50 -08:00
Allen Porter d3374ecd8e
Add type hints for google calendar integration (#65353)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-01 17:28:32 +01:00
G Johansson 390d32c71b
Fix options for dnsip (#65369) 2022-02-01 16:47:42 +01:00
fOmey d24fedbe97
Tuya fan natural wind mode (#65343) 2022-02-01 15:50:43 +01:00
Klaas Schoute 75a1f3207c
Use dataclass asdict to convert to dict (#65365) 2022-02-01 14:44:40 +01:00
Jc2k dd5bcafab7
Enable mypy checks for homekit_controller (#65358) 2022-02-01 11:27:35 +00:00
Erik Montnemery ab17f8984b
Improve CastProtocol (#65357)
* Improve CastProtocol

* Tweak
2022-02-01 10:47:12 +01:00
Jc2k 2a193e1016
Refactor platform loading in homekit_controller (#65338) 2022-02-01 07:38:42 +00:00
Paulus Schoutsen b05b4c4b38
Simplify unifi cleanup logic (#65345) 2022-02-01 07:22:12 +01:00
Allen Porter 88ed2f3b3e
Improve google calendar test coverage to 97% (#65223)
* Improve google calendar test coverage to 97%

* Remove commented out code.

* Remove unnecessary (flaky) checks for token file persistence

* Remove mock code assertions

* Add debug logging to google calendar integration

* Increase alarm time to polling code to reduce flakes

* Setup every test in their own configuration directory

* Mock out filesystem calls to avoid disk dependencies

Update scope checking code to use Storage object rather than text file matching

* Update tests to check entity states when integration is loaded

* Mock out google service in multiple locations

* Update homeassistant/components/google/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/google/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-01 03:14:49 +01:00
Paulus Schoutsen 5289935ac1
I zone, you zone, we zoning (#65344) 2022-01-31 17:04:46 -08:00
Martin Hjelmare d0412d65ac
Remove stale tradfri devices (#65218) 2022-01-31 16:43:16 -08:00
GitHub Action 0be8060b69 [ci skip] Translation update 2022-02-01 00:18:49 +00:00
Simone Chemelli 86079375b9
Add diagnostics for SamsungTV (#65342) 2022-01-31 16:10:55 -08:00
Duco Sebel 103fe9e0ba
Add HomeWizard diagnostics (#65297)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-31 16:08:58 -08:00
J. Nick Koston 3bb8de66d8
Bump zeroconf to 0.38.3 (#65341) 2022-01-31 16:08:42 -08:00
Paulus Schoutsen 47a5411525
Bump aiohue to 4.0.1 (#65340) 2022-01-31 15:58:52 -08:00
Paulus Schoutsen 31709b92ac
Bump version tag on async_timeout warning (#65339) 2022-01-31 15:52:31 -08:00