Commit Graph

41309 Commits (ff837c736e26a3c7f2fc75c822623fd89e225053)

Author SHA1 Message Date
Erik Montnemery ff837c736e
Return False from state conditions on missing attributes (#59405) 2021-11-09 11:34:18 +01:00
Chen-IL 2fd6400952
Bump aioasuswrt to 1.4.0 (#59357) 2021-11-09 11:17:48 +01:00
John Howard 7e9863f9c8
Removing trailing `\` in tts entity description (#59313) 2021-11-09 10:51:54 +01:00
lambtho 5418e76c84
IOTA removal (#59380) 2021-11-09 10:40:28 +01:00
epenet d226df2511
Dyson removal (#59401)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-09 10:38:51 +01:00
rianadon a102c425a9
Add speed conversion function & add speed to units system (#53846)
* Add speed conversion function

* Add test for speed utility functions

* Update unit system tests

* Fix incorrect unit conversions in tests

* Fix some test errors

* Calculate speed units from smaller set of constants

* Fix typo in speed test

* Use pytest.approx for checking floating point values

* Change other instance of speeds needing to be pytest.approx

* Revert changes to unit system

* Fix oopsie in defining in/day and in/hr

* Parametrize test

* Add comments describing calculations & remove duplicate test
2021-11-09 08:12:28 +01:00
Tom Brien f46ba2b38b
Add state class to Coinbase sensors (#59109) 2021-11-09 07:28:39 +01:00
RenierM26 121a0915bc
Switchbot bump api version (#59398)
* Bump Switchbot api for reliability improvements.

* Bump api version, update mock test import to reflect api data changes.
2021-11-09 07:01:05 +01:00
RenierM26 012e005e0d
Store SB data Class. (#59266) 2021-11-09 07:00:51 +01:00
Aidan Timson 4e59e6c9a7
System Bridge - Handle OSError for switched off devices (#59312) 2021-11-08 21:46:33 -08:00
Robert Hillis cc872b4618
Add tests for goalzero (#57008)
* Add tests for goalzero

* clean up
2021-11-08 21:29:25 -08:00
Michael a22a966fac
Increase timeout for fetching camera data on Synology DSM (#59237) 2021-11-08 20:42:20 -08:00
GitHub Action a989fd2e66 [ci skip] Translation update 2021-11-09 00:15:20 +00:00
epenet cf22bd8807
Use zeroconf attributes in freebox (#58967)
* Use zeroconf attributes in freebox

* Use zeroconf.HaServiceInfo in tests
2021-11-09 00:27:36 +01:00
Thomas Dietrich 9eaf8bd21b
Fix statistics precision handling (#59202)
* Fix statistics precision error when configured 0, fix #42547

* Add tests for statistics precision

* Apply precision=0 logic to float numbers only

* Implement contextlib way of exception handling
2021-11-08 23:26:00 +01:00
Thomas Dietrich 2924f4605b
Fix statistics startup error for None value states (#59199)
* Catch statistics startup error for None value states, fix #49254

* Add test for statistics None handling

* Update tests/components/statistics/test_sensor.py

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

* Switch test case logic to remove sensor last

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-08 23:25:19 +01:00
Kevin Hellemun 20b93132dd
Support generic xiaomi_miio vacuums (#59317)
* Support generic xiaomi_miio vacuums

Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>

* Fix lint

Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>

* Remove warning log

Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
2021-11-08 23:13:00 +01:00
Maikel Punie bb1203c61d
Bump velbusaio to 2021.11.6 (#59353) 2021-11-08 21:56:17 +01:00
Bram Kragten 69da2b29e6
Update frontend to 20211108.0 (#59364) 2021-11-08 12:45:40 -08:00
Shay Levy adfbcfa704
Add Shelly Gen1 beta_version attribute to firmware update sensor (#59359) 2021-11-08 21:47:01 +02:00
Shay Levy 4ac7dfc983
Cleanup Shelly light - use separate sets for dual mode and effects (#59363) 2021-11-08 21:46:23 +02:00
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
Antoni Różański 9aec8f61d7
Rewrite signal_messenger unittest to pytest (#57777)
* convert signal messenger unittest to pytest

* more fixtures

* more assertions and fixed test attachment sending

* reverted unrelated changes

* fixed flake errors

* Flake8 related issues fixed

* HHTPStatus instead of int
2021-11-06 23:36:59 +01:00