Commit Graph

32224 Commits (5e2d71dc9037b9c9186bff846eaf74490209f3cf)

Author SHA1 Message Date
jan iversen ac354ecff5
Bump pytradfri to v7.2.0. (#59342) 2021-11-08 20:20:19 +01:00
Piotr Majkrzak 80f1e8770a
Add Water Content Measurement clusters (#59300)
* Add Water Content Measurement clusters

* Fix typo

* Add device test

Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
2021-11-08 13:13:35 -05:00
jan iversen 2b68b9292c
Set tradfri entities to non-available when hub is not available (#59278)
* Set available when needed.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-08 18:41:25 +01:00
Erik Montnemery 7b9715bec3
Bump paho-mqtt to 1.6.1 (#59339) 2021-11-08 18:16:44 +01:00
Aidan Timson 875aecd4e2
System Bridge - Add configuration URL (#59320) 2021-11-08 09:09:08 -08:00
Paulus Schoutsen 296f678d52
Add Evil Genius Labs integration (#58720)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-08 08:56:27 -08:00
epenet 089353e949
Use DeviceInfo in velbus (#58622) 2021-11-08 10:26:00 -06:00
Michael 0edb0c9bc9
Correct name of end apc sensor (#59200) 2021-11-08 16:08:07 +01:00
Chris Browet 4224cb043b
Allow overriding ensure_ascii in the "to_json" template filter (#54527)
* FIX: "ensureascii" to to_json

* fixup: parameter name
2021-11-08 15:49:10 +01:00
Damien Duboeuf 67c2747027
Add MQTT object_id option (#58728)
* Add MQTT object_id option

* Add MQTT object_id option

* Add MQTT object_id option

* Add MQTT object_id option - Fix light and vacuum

* Add MQTT object_id option - Fix light and vacuum

* Add MQTT object_id option - Fix lock

* Add MQTT object_id option - Fix device

* Add MQTT object_id option - Fix device

* Update tests/components/mqtt/test_discovery.py

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

* Change deprecated method

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-08 14:02:18 +01:00
chriss158 5151c4d99b
Add long-term statistics support for homematic sensors (#57396)
* Add long-term statistics support for homematic

* Refactor cast list to SensorEntityDescription dict

Additional:
- Gas power, gas energy counter, air pressure and voltage uses long-term-statistics
- Gas power, gas energy counter uses device class gas
- Voltage uses device class voltage
- air pressure uses device class pressure

* Refactor expensive loop to separate dictionarys

* Use entity description property + fix humidity sensor

* Log missing sensor descriptions

* Use state class measurement for illumination sensors

* Move sensor entity desc missing warning to setup_platform

* Set type for hmdevice and homematic to fix mypy error

* Use EntityDescription instead of SensorEntityDescription

* Update entity.py

* fix type

* Update climate.py

* fix v2

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-11-08 11:40:01 +01:00
Brett Adams 9241d80730
Change zone HVAC mode in Advantage Air (#52816)
* Change "on" HVAC mode to auto fixing #48466

* Use HEAT_COOL instead

* Add missing HVAC_MODE_HEAT_COOL
2021-11-07 19:20:01 -08:00
J. Nick Koston 977b3cbe98
Improve support for flux_led pixel/RBM controllers (#59325)
* Fetch flux_led effects from library

- Each model can have different effects

* Improve support for flux_led pixel/RBM controllers

- RBM effects 1-100 are now available

* empty
2021-11-07 19:13:42 -08:00
Alexei Chetroi 958c588a19
Bump up ZHA dependencies (#59314) 2021-11-07 19:06:22 -08:00
GitHub Action e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
Jim Shank 563eba7684
Clean up transmission empty containers evaluation (#59304) 2021-11-08 01:06:56 +01:00
Aaron Bach 8ebd47b430
Guard against flaky SimpliSafe API calls (#59175) 2021-11-07 15:34:25 -08:00
Austin Mroczek 72aaeda8a0
Bump total_connect_client to 2021.11.2 (#58818)
* update total_connect_client to 2021.10

* update for total_connect_client changes

* remove unused return value

* bump total_connect_client to 2021.11.1

* bump total_connect_client to 2021.11.2

* Move to public ResultCode

* load locations to prevent 'unknown error occurred'

* add test for zero locations

* Revert "load locations to prevent 'unknown error occurred'"

This reverts commit 28b8984be5.

* Revert "add test for zero locations"

This reverts commit 77bf7908d5.
2021-11-07 15:30:34 -08:00
Shay Levy 55cd1ffb7c
Revert "Use DeviceInfo in shelly (#58520)" (#59315)
This reverts commit df6351f86b.
2021-11-07 15:29:29 -08:00
Maciej Bieniek c85db9a39d
Remove illuminance sensor (#59305) 2021-11-07 23:17:15 +01:00
Alexei Chetroi cc82976d15
Add Battery sensor regardless if the battery_percent_remaining attribute is supported or not (#59264) 2021-11-07 12:53:28 -05:00
J. Nick Koston b75476e844
Add support for matching the zeroconf model property (#58922) 2021-11-07 07:44:15 -08:00
Franck Nijhof ddf0941275
Upgrade async-upnp-client to 0.22.12 (#59284) 2021-11-07 07:41:26 -08:00
micha91 37259a1448
Fix udp ports (#59293) 2021-11-07 07:38:12 -08:00
Marc Mueller ae1592b27a
Fix typing issues - wallbox.number (#59286) 2021-11-07 15:57:34 +01:00
Simone Chemelli c6a1fe0a5d
Fix condition for fritz integration (#59281) 2021-11-07 15:17:50 +01:00
mezz64 8dd7e4a39b
Bump pyEmby to 1.8 (#59267) 2021-11-07 10:35:50 +01:00
GitHub Action 332a571bb4 [ci skip] Translation update 2021-11-07 00:12:38 +00:00
Aaron Bach 3d0d038597
Guard against missing data in ReCollect Waste (#59177) 2021-11-06 21:10:58 +01:00
Marvin Wichmann c5b5c8c3ce
Remove deprecated usages of HomeAssistantType (#59241) 2021-11-06 19:48:02 +01:00
Franck Nijhof fdf1bfa140
Add RDW Vehicle information integration (#59240) 2021-11-06 19:34:51 +01:00
Matthias Alphart fc7d4ed118
Add decoded telegram payload to knx_event service (#57621)
* decode knx_event telegram payload with given dpt

* exception handling for invalid payloads

* Update homeassistant/components/knx/__init__.py

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
2021-11-06 19:31:25 +01:00
Aaron Bach 2e4ee487c1
Address post-merge Ridwell code review (#58857) 2021-11-06 10:11:00 -06:00
Guido Schmitz 7abf79d1f9
Fix typing in devolo Home Network (#59238) 2021-11-06 16:49:51 +01:00
jan iversen 933ad5ae49
Fix tradfri group reachable access (#59217) 2021-11-06 16:46:51 +01:00
Franck Nijhof af521c0a35
Upgrade numpy to 1.21.4 (#59188)
Co-authored-by: Marvin Wichmann <marvin.wichmann@unic.com>
2021-11-06 16:43:29 +01:00
Michael 6a149706ab
add constant CONF_SLEEP_PERIOD (#59195) 2021-11-06 17:32:58 +02:00
J. Nick Koston a9c5f68d64
Reduce code duplication in gogogate2 (#59165) 2021-11-06 14:13:48 +01:00
Tobias Sauerwein 59ae35892c
Bump RMVtransport to v0.3.3 (#59210) 2021-11-06 13:40:45 +01:00
J. Nick Koston 23f0afa789
Bump flux_led to 0.24.17 (#59211)
* Bump flux_led to 0.24.16

- Changes: https://github.com/Danielhiversen/flux_led/compare/0.24.15...0.24.16

- Fixes turning on/off when device is out of sync internally (seen on 0x33 firmware 8)

- Fixes #59190

* Bump to .17 to fix typing
2021-11-06 13:34:10 +01:00
Aidan Timson 15636a4fe4
Bump systembridge to v2.2.1 (#59229) 2021-11-06 13:32:20 +01:00
Aidan Timson 66bdbbff45
Bump aiolyric to v1.0.8 (#59228) 2021-11-06 13:31:06 +01:00
Michael 2a05697c91
bump aioshelly to 1.0.4 (#59209) 2021-11-06 12:50:53 +01:00
Robert Hillis aaaae6abca
Bump pyefergy to 0.1.4 (#59219) 2021-11-06 11:53:34 +01:00
uvjustin 3693b9bd04
Adjust frag_duration setting in stream (#59135) 2021-11-05 18:54:51 -07:00
GitHub Action 7b59dea67e [ci skip] Translation update 2021-11-06 00:11:41 +00:00
Aaron Bach 6145ee97cb
Change ReCollect Waste device class to date (#59180) 2021-11-05 20:29:12 +01:00
Peter Nijssen d384feb87f
Add configuration URL to Spider (#59171) 2021-11-05 19:11:30 +01:00
J. Nick Koston 2d48f4b65e
Bump flux_led to 0.24.15 (#59159)
- Changes: https://github.com/Danielhiversen/flux_led/compare/0.24.14...0.24.15

- Fixes color reporting for addressable devices
2021-11-05 11:27:52 -04:00
Aaron Bach dd0537054a
Bump aioguardian to 2021.11.0 (#59161) 2021-11-05 11:27:35 -04:00
Martin Hjelmare 30cba6ee8b
Add zwave_js select entity category (#59157)
* Set zwave_js select entity as category config

* Update tests
2021-11-05 10:31:51 -04:00
Marvin Wichmann 6a0c1a78aa
Address venstar review comments (#59151)
* Address venstar review comments

* Apply review suggestions

* Address review suggestions
2021-11-05 10:31:32 -04:00
Martin Hjelmare c0801c1233
Type vlc_telnet strictly (#59154) 2021-11-05 14:42:08 +01:00
Guido Schmitz 442d65e8da
Use entity category in devolo Home Control (#59104)
* Use entity category

* Add tests
2021-11-05 13:11:48 +01:00
Joakim Sørensen d709fcdd30
Bump pyhaversion from 21.10.0 to 21.11.1 (#59147) 2021-11-05 12:03:00 +01:00
Tim Rightnour 5ac55b3443
Add binary_sensor to venstar to track alerts (#58831)
* Add binary_sensor to venstar to track alerts

* Add binary_sensor.py to coveragerc

* Apply suggestions from code review by alengwenus

Co-authored-by: Andre Lengwenus <alengwenus@gmail.com>

* Fixup black any mypy complaints

* Yank the typing, it makes everything complain

Co-authored-by: Andre Lengwenus <alengwenus@gmail.com>
2021-11-05 12:00:57 +01:00
J. Nick Koston 8b25bd0cea
Bump zeroconf to 0.36.12 (#59133)
- Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.36.11...0.36.12

Bugfix: Prevent service lookups from deadlocking if time abruptly moves backwards
2021-11-05 11:22:59 +01:00
Erik Montnemery 470b01e4ce
Move async_migration_in_progress (#59087) 2021-11-05 10:40:56 +01:00
epenet 8cc2f3b7a4
Use zeroconf attributes in enphase-envoy (#58961) 2021-11-05 00:34:10 -05:00
Erik Montnemery dc1edc98fc
Remove unused KeywordStyleAdapter (#59091) 2021-11-04 20:12:21 -07:00
Glenn Waters ca00551e4f
Environment Canada config_flow fix (#59029) 2021-11-04 20:11:22 -07:00
J. Nick Koston e57c60bb2f
Bump flux_led to 0.24.14 (#59121) 2021-11-04 20:10:47 -07:00
GitHub Action c8d8513a1a [ci skip] Translation update 2021-11-05 00:13:45 +00:00
Allen Porter fa4e890696
Revamp nest authentication config flows and remove need for redirect urls (#59033)
* Add support for Installed Auth authentication flows.

Add support for additional credential types to make configuration simpler for
end users. The existing Web App auth flow requires users to configure
redirect urls with Google that has a very high security bar: requires ssl,
and a publicly resolvable dns name.

The new Installed App flow requires the user to copy/paste an access code
and is the same flow used by the `google` calendar integration. This also
allows us to let users create one authentication credential to use with
multiple google integrations.

* Remove hard migration for nest config entries, using soft migration

* Add comment explaining soft migration

* Revet changes to common.py made obsolete by removing migration

* Reduce unnecessary diffs in nest common.py

* Update config entries using library method

* Run `python3 -m script.translations develop`

* Revert nest auth domain

* Remove compat function which is no longer needed

* Remove stale nest comment

* Adjust typing for python3.8

* Address PR feedback for nest auth revamp
2021-11-04 15:56:16 -07:00
Nathan Spencer ea4009fd81
Use entity_category in litterrobot (#59074) 2021-11-04 22:34:54 +01:00
Franck Nijhof 38b61f3ff9
Upgrade mitemp_bt to 0.0.5 (#59054)
* Upgrade mitemp_bt to 0.0.4

* Upgrade mitemp_bt to 0.0.5
2021-11-04 20:22:11 +01:00
Erik Montnemery a62bc6b3b9
Minor tweak of cv.deprecated + cv.removed (#59095)
* Minor tweak of cv.deprecated + cv.removed

* Satisfy pylint
2021-11-04 19:12:21 +01:00
Erik Montnemery 491e62792b
Correct rescheduling of ExternalStatisticsTask (#59076) 2021-11-04 18:35:43 +01:00
Jan Bouwhuis c3fc19915e
Mqtt fan fail deprecated options for classic speeds (#58992)
* Fail deprecated options

* new removed validator

* correct module_name - add tests

* Add test cant find module cv.removed

* module name from stack+1

* Remove error from log. Just throw.

* assert on thrown exception text

* cleanup formatting remove KeyStyleAdapter

* format the replacement_key and update test

* deprecated vs removed - add raise_if_present opt

* doc string update

* is deprecated
2021-11-04 17:54:27 +01:00
Kevin Hellemun 7945facf1e
Fix mop attribute for unified mop and water box in Xiaomi Miio (#58990)
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 17:00:25 +01:00
Franck Nijhof d126d88977
Add Button entity component platform (#57642)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 16:50:43 +01:00
Erik Montnemery 4c5aca93df
Add recorder status WS API (#58989)
* Add recorder status WS API

* Rename recorder/status to recorder/info

* Silence pylint

* Improve tests

* Address review comments

* Tweak

* Try to fix tests

* Try to debug flaky tests

* Try to fix tests

* Revert changes to async_migration_in_progress

* Try to fix tests

* Remove debug prints

* Apply suggestions from code review
2021-11-04 16:46:45 +01:00
Erik Montnemery be4e9f91b6
Change minimum supported SQLite version to 3.31.0 (#59073) 2021-11-04 16:34:35 +01:00
Guido Schmitz 620db191b1
Use entity category and state class in devolo Home Network (#59071)
* Use entity category and state class

* Add tests
2021-11-04 16:17:20 +01:00
J. Nick Koston 10d6247fee
Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
Franck Nijhof 23cb396aad
Upgrade restrictedpython to 5.2a1.dev0 (#59049) 2021-11-04 14:52:57 +01:00
Maikel Punie a852b6df66
Add typing info to velbus (part 1) (#59041)
* Add typing info to velbus (part 1)

* Fix pylint

* Update homeassistant/components/velbus/cover.py

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

* Update homeassistant/components/velbus/cover.py

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

* Update homeassistant/components/velbus/cover.py

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

* Update homeassistant/components/velbus/cover.py

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

* Update homeassistant/components/velbus/cover.py

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

* Update homeassistant/components/velbus/cover.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 14:37:44 +01:00
ollo69 ea6504dfa2
Fix Nut resources option migration (#59020)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 14:26:17 +01:00
Teemu R f578eee81d
Remove use_time sensor from mjjsq humidifers (#59066) 2021-11-04 14:25:07 +01:00
Maikel Punie 22248f891d
Refactor velbus light code to make it more clear and readable (#58483)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-11-04 14:22:58 +01:00
Teemu R ea657e6656
Accept all roborock vacuum models for xiaomi_miio (#59018) 2021-11-04 14:14:31 +01:00
Maikel Punie 23a0f0b777
Bump velbus-aio to 2021.11.0 (#59040) 2021-11-04 12:27:41 +01:00
Thomas G 74beebc031
Swap sharkiq vacuum is_docked with is_charging (#58975) 2021-11-04 11:21:59 +01:00
Franck Nijhof 32784d1b83
Constrain urllib3 to >=1.26.5 (#59043) 2021-11-04 11:21:30 +01:00
Franck Nijhof 50a1e908c4
Increase time to authorize OctoPrint (#59051) 2021-11-04 11:06:17 +01:00
Erik Montnemery 2f3dea30e2
Correct migration to recorder schema 22 (#59048) 2021-11-04 10:29:10 +01:00
hesselonline 4345432d14
Add state class to wallbox component (#58801) 2021-11-04 09:58:58 +01:00
Eugenio Panadero a64cec6da1
Bump aiopvpc to 2.2.1 (#59008)
happening because some config change in the ESIOS API server,
solved with a version patch in aiopvpc
(details in https://github.com/azogue/aiopvpc/pull/28)
2021-11-04 05:32:16 +01:00
Dave T 6419950283
Aurora abb improvements (#58504)
* Add type hints.

* Refactor AuroraDevice to AuroraDeviceEntity

* Refactor AuroraDevice to AuroraDeviceEntity

* Connection class is defined in manifest.

* Separate words with underscore in variable names

* Remove duplicated code.

* Remove unused "unknown" string

* Test import yaml when integration already setup

* Remove test already done in config_flow test

* Convert variable names to snake case

* Shorten AuroraDeviceEntity to AuroraEntity

* Add typing

* Remove unnecessary integration setup in test.

* Refactor "already_setup" to "already_configured"

* Use common string

* Reduce the amount of code in the try block.

* Fix merge

* Allow yaml setup to be deferred if no comms

* Properly setup all sensors for defered yaml setup.

* Apply suggestions from code review

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

* Add type hints.

* Refactor AuroraDevice to AuroraDeviceEntity

* Refactor AuroraDevice to AuroraDeviceEntity

* Connection class is defined in manifest.

* Separate words with underscore in variable names

* Remove duplicated code.

* Remove unused "unknown" string

* Test import yaml when integration already setup

* Remove test already done in config_flow test

* Convert variable names to snake case

* Shorten AuroraDeviceEntity to AuroraEntity

* Add typing

* Remove unnecessary integration setup in test.

* Refactor "already_setup" to "already_configured"

* Use common string

* Reduce the amount of code in the try block.

* Allow yaml setup to be deferred if no comms

* Properly setup all sensors for defered yaml setup.

* Code review: move line out of try block.

* Improve test coverage

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-04 04:38:47 +01:00
GitHub Action c9c95165e4 [ci skip] Translation update 2021-11-04 00:12:21 +00:00
Teemu R 96c03aec06
Fix timedelta-based sensors for xiaomi_miio (#58995) 2021-11-03 17:28:11 +01:00
Sergio Gutierrez Alvarez 1af621ef13
Fix battery_is_charging sensor on system bridge (#58980) 2021-11-03 12:28:04 +01:00
Bram Kragten a7d958ae8a
Update frontend to 20211103.0 (#58988) 2021-11-03 11:51:17 +01:00
kodsnutten 1548877e36
Fix unique_id of derived sent-sensors (#58298) 2021-11-03 10:21:54 +01:00
Hans Oischinger a4fc808e49
Fix broken ViCare burner & compressor sensors (#58962) 2021-11-03 08:45:22 +01:00
Dermot Duffy 8fda2e0a1d
Address late review of motionEye media browser (#58925)
* Media-content type fixes post-codereview.

* More f-string.

* Use the 'video' media class not 'movie'.
2021-11-03 06:37:52 +01:00
Robert Hillis 16371e6579
Add missing ZMW currency (#58959) 2021-11-02 20:21:56 -07:00
Dave T 51be7d53d6
Aurora abb defer unique_id assignment during yaml import (#58887)
* Defer unique_id assignment during yaml import if dark

* Back out variable name change to simplify.

* Allow config flow yaml setup deferral.

* Fix deferred yaml import

* Code review: only wrap necessary lines in try blk

* Code review: catch possible duplicate unique_id

* Simplify assignment.

* Code review: use timedelta to retry yaml import

* Code review: if a different error occurs, raise it

* Remove current config entry if duplicate unique_id

* Code review: remove unnecessary line.

* Code review: revert change, leave to other PR.

* Code review: remove unnecessary patch & min->sec

* Remove unnecessary else after raise.

* Increase test coverage.

* Check the number of config entries at each stage

* Raise ConfigEntryNotReady when connection fails.

* Log & return false for error on yaml import
2021-11-03 01:30:29 +01:00
GitHub Action 2f4b7fe809 [ci skip] Translation update 2021-11-03 00:11:55 +00:00
Franck Nijhof ab20bf4e9a
Add support for IoT Switches (tdq) in Tuya (#58952) 2021-11-02 11:27:46 -07:00