Commit Graph
45539 Commits
Author SHA1 Message Date
Erik MontnemeryandGitHub fda0fbd115 Stringify MQTT payload in mqtt/debug/info WS response (#65429) 2022-02-02 18:08:48 +01:00
Erik MontnemeryandGitHub 5a34feb7de Don't warn on time.sleep injected by the debugger (#65420) 2022-02-02 08:58:14 -08:00
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 KostonandGitHub 530fc8a9af Ensure unifiprotect discovery can be ignored (#65406) 2022-02-02 16:16:29 +01:00
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 KragtenandGitHub 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 PunieandGitHub 40c727df66 Bump velbus-aio to 2022.2.1 (#65422) 2022-02-02 14:38:19 +01:00
G JohanssonandGitHub 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
epenetandGitHub a63e5c7ded Add type hints for config entry update listeners (#65412) 2022-02-02 03:36:04 -06:00
Erik MontnemeryandGitHub 627be81531 Import registries in MQTT mixins (#65411) 2022-02-02 10:32:11 +01:00
Josh ShoemakerandGitHub 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
jjlawrenandGitHub 4794625048 Detect battery-operated Sonos devices going offline (#65382) 2022-02-01 22:11:21 -06:00
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 KostonandGitHub 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 KostonandGitHub 73189ead1f Handle brightness being None for senseme (#65372) 2022-02-01 14:51:28 -08:00
Pierre StåhlandGitHub e2935b55ae Fix disconnect bug in Apple TV integration (#65385) 2022-02-01 15:44:06 -06:00
Pierre StåhlandGitHub 476a694248 Sort Apple TV app list by name (#65386) 2022-02-01 15:30:28 -06:00
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
Jc2kandGitHub 9f5d77e0df Add missing type hints to homekit_controller (#65368) 2022-02-01 13:30:37 -06:00
Paulus SchoutsenandGitHub aef6f49eff Bump frontend to 20220201.0 (#65380) 2022-02-01 09:58:23 -08:00
MichaelandGitHub 1b8252fa2f Fix wan_access switch for disconnected devices in Fritz!Tools (#65378) 2022-02-01 09:57:34 -08:00
Robert SvenssonandGitHub 69ac59ce73 Redact host address in UniFi diagnostics (#65379) 2022-02-01 09:52:56 -08:00
Bram KragtenandGitHub c82aa1606a Allow removing keys from automation (#65374) 2022-02-01 09:45:08 -08:00
3c0369ed59 Fix honeywell hold mode (#65327)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-01 09:11:09 -08:00
Martin HjelmareandGitHub 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
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 JohanssonandGitHub 390d32c71b Fix options for dnsip (#65369) 2022-02-01 16:47:42 +01:00
fOmeyandGitHub d24fedbe97 Tuya fan natural wind mode (#65343) 2022-02-01 15:50:43 +01:00
Klaas SchouteandGitHub 75a1f3207c Use dataclass asdict to convert to dict (#65365) 2022-02-01 14:44:40 +01:00
Jc2kandGitHub dd5bcafab7 Enable mypy checks for homekit_controller (#65358) 2022-02-01 11:27:35 +00:00
Erik MontnemeryandGitHub ab17f8984b Improve CastProtocol (#65357)
* Improve CastProtocol

* Tweak
2022-02-01 10:47:12 +01:00
Jc2kandGitHub 2a193e1016 Refactor platform loading in homekit_controller (#65338) 2022-02-01 07:38:42 +00:00
Paulus SchoutsenandGitHub b05b4c4b38 Simplify unifi cleanup logic (#65345) 2022-02-01 07:22:12 +01:00
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 SchoutsenandGitHub 5289935ac1 I zone, you zone, we zoning (#65344) 2022-01-31 17:04:46 -08:00
Martin HjelmareandGitHub 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 ChemelliandGitHub 86079375b9 Add diagnostics for SamsungTV (#65342) 2022-01-31 16:10:55 -08:00
103fe9e0ba Add HomeWizard diagnostics (#65297)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-31 16:08:58 -08:00
J. Nick KostonandGitHub 3bb8de66d8 Bump zeroconf to 0.38.3 (#65341) 2022-01-31 16:08:42 -08:00
Paulus SchoutsenandGitHub 47a5411525 Bump aiohue to 4.0.1 (#65340) 2022-01-31 15:58:52 -08:00
Paulus SchoutsenandGitHub 31709b92ac Bump version tag on async_timeout warning (#65339) 2022-01-31 15:52:31 -08:00
MichaelandGitHub c9f38355f7 Improve debugging and error handling in Fritz!Tools (#65324) 2022-01-31 15:28:11 -08:00
J. Nick KostonandGitHub 18ea3fb85a Prevent unifiprotect from being rediscovered on UDM-PROs (#65335) 2022-01-31 15:27:26 -08:00
J. Nick KostonandGitHub c7eb676449 Fix guardian being rediscovered via dhcp (#65332) 2022-01-31 15:24:55 -08:00
Paulus SchoutsenandGitHub bf138c4ffb Alexa to handle brightness and catch exceptions (#65322) 2022-01-31 15:01:46 -08:00
Chris TalkingtonandGitHub 70da08499a Refactor sonarr tests (#64886) 2022-01-31 16:59:18 -06:00