Commit Graph
45588 Commits
Author SHA1 Message Date
Erik Montnemery 5a34feb7de Don't warn on time.sleep injected by the debugger (#65420) 2022-02-02 08:58:14 -08:00
Stefan AgnerandFranck Nijhof 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 BouwhuisandErik Montnemery 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
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
jjlawrenandJ. Nick Koston 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 SauerweinandShay Levy 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
schreyackandMartin Hjelmare 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
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 PorterandMartin Hjelmare 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 PorterandMartin Hjelmare 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 SebelandPaulus Schoutsen 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
Michael c9f38355f7 Improve debugging and error handling in Fritz!Tools (#65324) 2022-01-31 15:28:11 -08:00
J. Nick Koston 18ea3fb85a Prevent unifiprotect from being rediscovered on UDM-PROs (#65335) 2022-01-31 15:27:26 -08:00
J. Nick Koston c7eb676449 Fix guardian being rediscovered via dhcp (#65332) 2022-01-31 15:24:55 -08:00
Paulus Schoutsen bf138c4ffb Alexa to handle brightness and catch exceptions (#65322) 2022-01-31 15:01:46 -08:00
Chris Talkington 70da08499a Refactor sonarr tests (#64886) 2022-01-31 16:59:18 -06:00
Jc2k 0f88790303 Refactor homekit_controller to prepare for more typing information (#65329) 2022-01-31 16:48:16 -06:00