Commit Graph

33418 Commits (3118bfdfab685be4c57d69401c8c8a647a5b54c7)

Author SHA1 Message Date
alim4r 7d256f56c5
Refactor Prometheus tests (#60451)
* Removed prometheus from .coveragerc

* Update prometheus tests with handler categories

* Updated prometheus metrics to use the current registry
- don't use the registry created on import (needed for tests)

* Reset the prometheus CollectorRegistry before every test

* Update prometheus metrics generation
- Use latest registry when generating a response

* Add default collectors when resetting the registry

* Move entities to the specific prometheus test case

* Refactor body generation for prometheus tests

* Add test case for sensors without unit after rebase

* Fix prometheus tests
- Wait for events in prometheus tests
- Add workaround for demo platform dependecy conversation (aiohttp frozen router)

* Added prometheus tests for attribute metrics

* Added prometheus tests for binary_sensor

* Add prometheus test for input_boolean

* Add prometheus test for lights

* Add prometheus test for lock

* Add prometheus test for sensor fahrenheit conversion

* Fix prometheus test for input_number
2021-12-08 20:18:21 +01:00
Erik Montnemery 159506262a
Skip duplicated data when calculating fossil energy consumption (#60599) 2021-12-08 10:59:26 -08:00
Milan Meulemans dbe0a801c6
Use _attr_* in whois integration (#61250) 2021-12-08 10:58:46 -08:00
epenet 40828e221e
Use new DeviceClass enums in abode (#61244)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:58:01 -08:00
epenet d03b73eb23
Use new DeviceClass enums in accuweather (#61246)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:36 -08:00
epenet d79169ca2e
Use new DeviceClass enums in acmeda (#61248)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:18 -08:00
epenet b5f7e14985
Use new DeviceClass enums in ads (#61249)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:56:59 -08:00
Jan Bouwhuis 17a542689f
Fix pvoutput template use and REST integer parsing (#61171)
* Fix pvoutput template use and REST integer parsing

* revert accepting templates as input
2021-12-08 19:32:25 +01:00
Dave T af91addc6c
Use SensorDeviceClass and SensorStateClass enums in Aurora ABB (#61245) 2021-12-08 18:01:52 +01:00
Erik Montnemery f30eb05870
Refactor recorder queue handling (#61161)
* Refactor recorder queue handling

* Address pylint's concerns

* Implement workaround for mypy bug

* Address review comments
2021-12-08 16:54:26 +01:00
Daniel Hjelseth Høyer 9a46e802b7
Address late review of Adax (#61200)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-08 10:04:13 +01:00
J. Nick Koston d5aa4a9ce1
Updating naming for flux_led (#61187) 2021-12-08 09:30:22 +01:00
Paulus Schoutsen b7539fc0de
Fix islamic prayer times timestamp sensor (#61207) 2021-12-07 23:39:27 -08:00
Paulus Schoutsen 7b3a7ee2d1
Jewish Calendar: Do not convert datetimes to UTC (#61222) 2021-12-07 23:38:52 -08:00
Paulus Schoutsen c8fbf4c339
don't convert GTFS timestamp to UTC in timestamp sensor (#61221) 2021-12-08 08:26:45 +01:00
Paulus Schoutsen a81026ea90
Fix follow-up review comment for bbox (#61219) 2021-12-07 23:14:21 -08:00
Paulus Schoutsen 1ca8df9584
Fix hydrawise timestamp sensor (#61206) 2021-12-07 22:56:22 -08:00
Paulus Schoutsen 6b6b60b589
Fix hvv_departures timestamp sensor (#61205) 2021-12-07 22:56:07 -08:00
Paulus Schoutsen ef70dec7a4
Fix Rova using strings as timestamp (#61201) 2021-12-07 22:55:43 -08:00
Paulus Schoutsen e011073789
Fix gtfs timestamp sensor (#61204) 2021-12-07 22:49:43 -08:00
Paulus Schoutsen 113a850c69
Fix flipr timestamp sensor (#61203) 2021-12-07 22:48:04 -08:00
Paulus Schoutsen fa75c1f92f
Fix bbox timestamp (#61202) 2021-12-07 22:47:38 -08:00
Paulus Schoutsen 271b798dc9
Fix lyric timestamp sensor (#61209)
* Fix lyric timestamp sensor

* Update type
2021-12-07 22:46:45 -08:00
Paulus Schoutsen 2c451e6a76
Fix litterrobot timestamp sensor (#61208)
* Fix litterrobot timestamp sensor

* Update type
2021-12-07 22:38:35 -08:00
Paulus Schoutsen 566cf9785e
Fix modern_forms timestmap sensors (#61211) 2021-12-07 22:35:38 -08:00
Paulus Schoutsen 3519ad4309
Fix vallox timestamp sensor (#61216)
* Fix vallox timestamp sensor

* Change old state type
2021-12-07 22:35:13 -08:00
Paulus Schoutsen 0780bf142f
Fix meteo_france timestamp sensor (#61210) 2021-12-07 22:25:42 -08:00
Paulus Schoutsen ea42384afd
Fix nextbus timestamp sensor (#61212) 2021-12-07 22:23:14 -08:00
Paulus Schoutsen 6257b3e070
Fix oasa_telematics timestamp sensor (#61213) 2021-12-07 22:14:52 -08:00
Paulus Schoutsen 4819484cbb
Fix yandex_transport timestamp sensor (#61217) 2021-12-07 22:14:28 -08:00
Paulus Schoutsen 21f897bb5b
Fix repetier timestamp sensors (#61214) 2021-12-07 22:12:26 -08:00
epenet 54d55fdf88
Use list comprehension in onewire sensor descriptions (#61157)
* Add 0-3 range to constants

* Use list comprehension in sensor definitions

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-07 23:06:27 -06:00
Daniel Hjelseth Høyer 8cee47072d
Add local access for Adax (#60019) 2021-12-07 16:48:16 -10:00
J. Nick Koston df9154268e
Update MagicHome/flux_led OUIs for DHCP discovery (#61192) 2021-12-07 20:15:56 -06:00
J. Nick Koston 81dc84aef5
Fix log spam from flux_led 0x08 devices when in music mode (#61196) 2021-12-07 17:20:55 -08:00
J. Nick Koston 6b70bd7495
Fix uncaught exception in bond config flow (#61184) 2021-12-07 17:20:38 -08:00
Robert Blomqvist ea58778a5c
Rephrase upgrade notification message to avoid installing Python 3.10 (#61181) 2021-12-07 17:19:23 -08:00
GitHub Action d69c6e3ab3 [ci skip] Translation update 2021-12-08 00:13:50 +00:00
puddly 1768b19f71
Bump ZHA dependency zigpy-znp from 0.6.3 to 0.6.4 (#61194) 2021-12-07 18:38:34 -05:00
Alberto Geniola b0affe7bfb
Elmax integration (#59321)
* Add elmax integration.

* Run hassfest and generate requirements_all

* Remove secondary platforms from elmax integration as per first component integration.

* Move ElmaxCoordinator and ElmaxEntity into external file
Linting review

* Remove useless variables

* Fix wrong indentation.

* Remove unecessary platforms.

* Remove unnecessary attributes from manifest.

* Rely on property getters/setters rathern than private attribute from parent.
Update internal entity state just after transitory state update.

* Update homeassistant/components/elmax/const.py

Reference Platform constant

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

* Update username/password values

Rely on already-present templating constants

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

* Add missing constant import.

* Remove unnecessary test_unhandled_error() callback implementation.

* Add common.py to coverage ignore list.

* Improve coverage of config_flow.

* Rename the integration.

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Fix reauth bug and improve testing.

* Refactor lambdas into generators.

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-07 22:42:55 +01:00
Marcel van der Veldt 7c7df5bb51
Change check for existence of options flow (#61147)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-07 12:50:34 -08:00
Erik Montnemery 4a814405c2
Minor deduplication of condition validation code (#61170) 2021-12-07 11:55:16 -08:00
einarhauks dced4d4542
Display energy in wh instead of kWh (#61169) 2021-12-07 11:33:24 -08:00
Allen Porter 6d867e0415
Bump nest to 0.4.5 to fix media player event expiration (#61174) 2021-12-07 11:30:23 -08:00
Aaron Bach 9af8d59a7a
Bump py17track to 2021.12.2 (#61166) 2021-12-07 11:29:54 -08:00
Charles Garwood 00a82bf945
Remove loopenergy integration (#61175)
* Remove loopenergy integration

* Fix requirements_all.txt

* Fix requirements_test_all.txt
2021-12-07 19:47:44 +01:00
bsmappee 84dbc8279d
Bump pysmappee to 0.2.29 (#61160) 2021-12-07 19:15:51 +01:00
Erik Montnemery 5256e26b6a
Fix incorrect docstring in automation trace code (#61168) 2021-12-07 18:05:41 +01:00
Tim Rightnour 489d85d862
Add Onewire diagnostic and config switches and binary_sensors (#59309)
* Onewire: Add diagnostic and config switches and binary_sensors
This commit adds diagnostic and config switches and binary_sensors to
the HobbyBoards devices.  With these, the user will be able to configure
those devices, without having to run owwrite/owread commands outside
of HA.

* Address review from @epenet

* Add HB_HUB to DEVICE_SUPPORT_OWSERVER

* Device class and entity category enums

* Fixup merge breakage

* Remove duplicate lines
2021-12-07 13:59:43 +01:00
Tobias Sauerwein 45c463b61c
Fix Netatmo climate issue (#61154)
Signed-off-by: cgtobi <cgtobi@gmail.com>
2021-12-07 13:56:31 +01:00
Stefan Agner f0006b92be
Allow to lock SQLite database during backup (#60874)
* Allow to set CONF_DB_URL

This is useful for test which need a custom DB path.

* Introduce write_lock_db helper to lock SQLite database

* Introduce Websocket API which allows to lock database during backup

* Fix isort

* Avoid mutable default arguments

* Address pylint issues

* Avoid holding executor thread

* Set unlock event in case timeout occures

This makes sure the database is left unlocked even in case of a race
condition.

* Add more unit tests

* Address new pylint errors

* Lower timeout to speedup tests

* Introduce queue overflow test

* Unlock database if necessary

This makes sure that the test runs through in case locking actually
succeeds (and the test fails).

* Make DB_LOCK_TIMEOUT a global

There is no good reason for this to be an argument. The recorder needs
to pick a sensible value.

* Add Websocket Timeout test

* Test lock_database() return

* Update homeassistant/components/recorder/__init__.py

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

* Fix format

Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-07 13:16:24 +01:00
Alexander Leisentritt 4eeee79517
Change ondilo_ico update interval to 5 minutes (#61153)
API has a rate limit of 30 queries per hours, 5 minutes uses 12 queries and leave a reasonable reserve but ensures timestamps of measurements in Home Assistant are about equal to real timestamps
2021-12-07 13:01:34 +01:00
Erik Montnemery af2e95d891
Guard against missing states in Alexa state updates (#61152) 2021-12-07 12:44:50 +01:00
Marcel van der Veldt 4563d95d40
Replace deprecated DEVICE_CLASS constants with new enums in Hue integration (#61149) 2021-12-07 11:41:43 +01:00
Fredrik Erlandsson c469bf2db9
Fix point availability (#61144) 2021-12-07 09:00:30 +01:00
Zac West 8ee2ca8a56
Deprecate ios push config (in favor of inline actions) (#61078) 2021-12-07 08:56:08 +01:00
Pierre Ståhl a87a6d3072
Add volume and tv metadata to Apple TV (#61107) 2021-12-06 21:36:13 -10:00
Erik Montnemery 5161126b58
Bump hatasmota to 0.3.1 (#61120) 2021-12-07 08:07:31 +01:00
Paulus Schoutsen 009a28ba7a
Block pytest_asyncio (#61141) 2021-12-06 22:07:56 -08:00
Paulus Schoutsen e3ba533464
Disable lupusec (#61142) 2021-12-06 21:24:18 -08:00
GitHub Action 5258c5fc9c [ci skip] Translation update 2021-12-07 00:51:52 +00:00
Paulus Schoutsen b45f48a35a
Bump frontend to 20211206.0 (#61133) 2021-12-06 15:51:03 -08:00
epenet b8b4855b8e
Prevent log flooding in frame helper (#61085)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-06 15:26:31 -08:00
Aaron Bach 4aa7f36a53
Deprecate `entity_id` parameter in Guardian service calls (#61129) 2021-12-06 15:23:03 -08:00
jjlawren da4349d133
Improve Sonos activity debug logging (#61122) 2021-12-06 15:21:28 -08:00
Aaron Bach 0adf86d647
Bump simplisafe-python to 2021.12.0 (#61121) 2021-12-06 15:20:59 -08:00
Marcel van der Veldt 9e6e9774d1
Remove colon from default entity name in Hue integration (#61118) 2021-12-06 15:17:17 -08:00
epenet 97d292133f
Revert "Add Open-Meteo integration (#60379)" (#61130)
This reverts commit d802f3a82f.
2021-12-06 23:35:14 +01:00
Paulus Schoutsen e712b80650
Return native timestamps for home connect (#61116) 2021-12-06 10:08:52 -08:00
Franck Nijhof d802f3a82f
Add Open-Meteo integration (#60379)
Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
2021-12-06 10:01:12 -08:00
epenet b6dc89b4b7
Add max/min/step to NumberEntityDescription (#61100)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-06 09:56:46 -08:00
Erik Montnemery e33384d8b9
Fix CO2 calculation when data is missing (#61106) 2021-12-06 09:55:28 -08:00
Paulus Schoutsen 10a423e01a
Bump aiohue to 3.0.2 (#61115) 2021-12-06 09:46:17 -08:00
micha91 f94085c83e
Add Yamaha MusicCast Select Entities (#60645)
* Add select entity for Yamaha MusicCast Capabilities

* Add musiccast select to .coveragerc

* Move status strings to string.select.json and auto generate the english translations from it. Let the device class start with yamaha_musiccast__.

* Make all device classes lower case

* Use platform enum to add select
2021-12-06 18:05:49 +01:00
G Johansson da5374614f
Improve code quality trafikverket_weatherstation (#61044)
* Code quality trafikverket_weatherstation

* Updates from review

* Fix extra attributes settings

* Fix for additional review comments
2021-12-06 18:01:46 +01:00
Jérôme W 400b7a22bd
Add media player volume control in `fr-FR` with Alexa (#60489)
* media player volume control in `fr-FR` with Alexa

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-06 17:49:47 +01:00
Marcel van der Veldt bd8bba9e3f
Fix migration of entities of Hue integration (#61095)
* fix device name in log

* Fix Hue migration for all id versions

* fix tests

* typo

* change to bit more universal approach

* fix test again

* formatting
2021-12-06 08:24:59 -08:00
Martin Hjelmare dddca8aaeb
Improve zwave_js add-on config flow description (#61099) 2021-12-06 14:46:53 +01:00
Pierre Ståhl 3a56cfed3a
Update Apple TV integration to support tvOS 15 (#58665) 2021-12-06 13:04:18 +01:00
Alexander Pitkin 1dfadd72cf
Fix yandex transport for Belarus (#61080) 2021-12-06 09:49:31 +01:00
Allen Porter bbe4a67a98
Coalesce nest media source preview clips by session and bump google-nest-sdm (#61081) 2021-12-05 23:59:24 -08:00
schreyack 1bcff0907b
Fix previous setting briefly appearing on newer flux_led devices when turning on (#60004)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-05 23:56:59 -08:00
Aaron Bach 0ae6969aa4
Deprecate `system_id` parameter in SimpliSafe service calls (#61076) 2021-12-05 23:55:52 -08:00
J. Nick Koston 2f0695e408
Fix missing unique id in enphase_envoy (#61083) 2021-12-05 23:53:53 -08:00
J. Nick Koston 742623ee81
Provide a hint on which username to use for enphase_envoy (#61084) 2021-12-06 08:50:45 +01:00
J. Nick Koston 40a57b3b01
Bump enphase_envoy to 0.20.1 (#61082) 2021-12-06 08:48:17 +01:00
J. Nick Koston 52d6b83da8
Abort flux_led discovery if another device gets the ip (#61074)
- If the dhcp reservation expired for the device that
  was at the ip and a new flux_led device appears we
  would discover it because the unique_id did not match
2021-12-05 22:41:09 -06:00
Marc Mueller 40b99135e5
Use platform enum (3) [H-L] (#60937)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-12-05 17:10:07 -10:00
Marc Mueller e0cb33a0a1
Use platform enum (4) [M-O] (#60940) 2021-12-05 17:06:35 -10:00
Milan Meulemans a7e129a952
Add Aseko Pool Live integration (#56299) 2021-12-05 17:02:46 -10:00
J. Nick Koston ef326c0ce9
Bump flux_led to 0.25.17 to fix missing push messages on 0xA3 models (#61070) 2021-12-05 17:56:35 -08:00
Alexei Chetroi 4e9fd56b8c
Add 3157100-E model to Centralite thermostat (#61073) 2021-12-05 20:36:05 -05:00
GitHub Action ecdb18eb0a [ci skip] Translation update 2021-12-06 00:13:37 +00:00
David F. Mulcahey 5e90e178aa
Prevent ZHA coordinator from showing unavailable (#61068) 2021-12-05 18:24:20 -05:00
Matthias Alphart ac263acb1c
Don't use ConfigEntry update listener for Fronius (#61017)
* disable `async_setup_entry` in config_flow tests

* don't use config_entry update listener

* add `Final` to constants

* assert that an updated entry causes a reload (unload)
2021-12-05 23:29:39 +01:00
Allen Porter ab75efda9a
Add debug logging for pip install command (#61057) 2021-12-05 13:30:02 -08:00
Allen Porter 5bd1139867
Fix regression in nest event media player with multiple devices (#61064) 2021-12-05 13:02:37 -08:00
Aaron Bach 4144699814
Fix mispelling in SimpliSafe service description (#61058) 2021-12-05 08:38:27 -10:00
Franck Nijhof a4ffa63165
Handle unknown/unavailable state for mobile_app (#60974) 2021-12-05 09:51:57 -08:00
david reid 95f0098593
Catch ConnectionResetError (#60987) 2021-12-05 09:50:15 -08:00
Teemu R dc5377485b
Use STATE_DOCKED for emptying the bin for xiaomi_miio.vacuum (#60513) 2021-12-05 09:48:25 -08:00
J. Nick Koston b5e3050a23
Update flux_led models database to fix turn on for newer models (#61005) 2021-12-05 09:48:03 -08:00
Marcel van der Veldt b98bc64604
Disable options flow for Hue V2 bridges (#61045) 2021-12-05 09:47:44 -08:00
Marcel van der Veldt 11e2f51681
Fix Hue migration (#61030) 2021-12-05 09:47:24 -08:00
Marcel van der Veldt 3eeb855679
Fix Hue config flow (#61028) 2021-12-05 09:46:48 -08:00
Marcel van der Veldt 86e8034ea0
Add guard for empty mac address in Hue integration (#61037) 2021-12-05 09:46:05 -08:00
Allen Porter 5fdcbbe0e1
Fetch media for events for rendering in the nest media player (#61056) 2021-12-05 09:45:40 -08:00
Allen Porter 1a842d65ce
Remove unnecessary explicit use of OrderedDict in nest media source (#61054)
Address follow up PR comments from #60073
2021-12-05 18:11:44 +01:00
Tim Rightnour dd4ede09c8
Add Venstar runtimes and battery sensors (#60414)
* Venstar: Add runtimes and battery sensors

* Address review - replace classes with lambda functions

* Clean up patch usage, make temperature_unit it's own function

* Remove double define of entities
2021-12-05 17:23:22 +01:00
Tim Rightnour bf1cacf4b2
Address late review of Balboa (#61004)
* Initial fixes from review of balboa climate

* Minor fixes from review
2021-12-05 17:22:13 +01:00
Franck Nijhof 5efb88f3f1
Remove deprecated YAML configuration from DSMR (#61008) 2021-12-05 17:09:37 +01:00
J. Nick Koston f5d7adc018
Fix lutron caseta discovery with newer firmwares (#61029) 2021-12-05 17:09:18 +01:00
Maximilian 9f7b8d3009
Add nina integration (#56647)
* Added nina integration

* Improvements implemented

* Fixed lint errors

* Added tests

* Improvements implemented

* Use client session from HA

* Added custom coordinator

* Fixed tests

* Fix pylint errors

* Library updated to 0.1.4

* Optimization of static attributes

* Removed unused code

* Switched to BinarySensorDeviceClass

* Switched to Platform Enum

* Improve repetition

* Improve repetition

* Fix corona filter

* Removed intermediate variable

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

* Fix black formatting

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
2021-12-05 15:11:02 +01:00
Franck Nijhof cf371ea8dd
Remove deprecated base entity classes (#61006)
* Remove deprecated base entity classes

* Clean up tests
2021-12-05 13:53:52 +01:00
rikroe 380c1a4be9
Fix BMW Connected Drive (#60938)
* Bump bimmer_connected to 0.8.5

* Always update HA states after service execution

* Fix BMW device tracker & vehicle_finder service

* Add charging_end_time sensor

* Fix pylint & pytest

* Remove unneeded DEFAULT_OPTION

* Revert adding charging_end_time & state_attributes

* Don't delete option data for CONF_USE_LOCATION

* Remove stale string

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2021-12-05 11:20:40 +01:00
Allen Porter e34d982bdb
Bump nest to version 0.4.2 (#61036) 2021-12-05 10:50:47 +01:00
Allen Porter 08003c5287
Improve nest media source event timestamp display (#61027)
Drop subsecond text from the nest media source event timestamp display, using a common date/time
template string.
2021-12-05 00:39:18 -08:00
GitHub Action fa5f524fdb [ci skip] Translation update 2021-12-05 00:14:27 +00:00
Marvin Wichmann affa3a6ada
Add missing local_ip to KNX config flow and options flow (#61018)
* Add missing local_ip to KNX config flow and options flow

* Update strings
2021-12-04 23:07:28 +01:00
Erik Montnemery a5b0e21e08
Fix translations for binary_sensor tampered device triggers (#60996) 2021-12-04 18:38:09 +01:00
Aaron Bach e33774a61e
Add missing SimpliSafe service information (#60958) 2021-12-04 09:34:24 -07:00
Charles Garwood e36f9f684d
Revert "Use language independent variable to read MPC-HC state" (#60993) 2021-12-04 15:13:05 +01:00
infeeeee c44eaca533
Use state variable from mpchc (#59341) 2021-12-04 08:47:49 -05:00
Marc Mueller b79b35abb5
Use platform enum (7) [T-Z] (#60948)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-04 14:10:01 +01:00
Franck Nijhof 73c880b6c2
Fix typo in state_characteristic warning (#60990) 2021-12-04 07:52:42 -05:00
Franck Nijhof 66c7387111
Fix str for device registry entry_type warnings caused by core (#60989) 2021-12-04 07:46:42 -05:00
Marc Mueller f7193400d4
Use platform enum (6) [S] (#60944) 2021-12-04 13:43:48 +01:00
Franck Nijhof ffb4b4df96
Only report deprecated device_state_attributes once (#60980) 2021-12-04 13:37:42 +01:00
Franck Nijhof 216ecf3426
Fix DSMR Reader providing strings as timestamps (#60988) 2021-12-04 13:31:34 +01:00
Marc Mueller cd1b923e16
Use platform enum (2) [E-G] (#60933) 2021-12-04 13:26:40 +01:00
Marc Mueller 79cd281c48
Use platform enum (5) [P-R] (#60943) 2021-12-04 13:19:49 +01:00
Franck Nijhof ed6352a22b
Fix Xiaomi Miio providing strings as timestamps (#60979) 2021-12-04 12:33:34 +01:00
Martin Hjelmare c9bb688a79
Revert metoffice weather daytime (#60978) 2021-12-04 10:29:48 +01:00
Chen-IL 8bb1a3fac4
Improve asuswrt code readability (#60975) 2021-12-04 10:29:26 +01:00
Raman Gupta 267896cfc0
Address late review of eight_sleep (#60951) 2021-12-04 10:17:17 +01:00
Thomas Dietrich 6d6e0dd8bf
Add unique_id to the statistics component (#59205)
* Implement optional manually defined uniqueid

* Fix test case via mocked environment
2021-12-04 09:50:47 +01:00
J. Nick Koston a553054fde
Fix flood lights not turning on/off with flux_led (#60973) 2021-12-03 22:44:16 -10:00
J. Nick Koston ad63149927
Fix dimmable effects for flux_led model 0x33 v9+ (#60972) 2021-12-04 09:20:56 +01:00
Paulus Schoutsen a59ec9ca5e
Handle invalid device registry entry type (#60966)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-04 09:20:12 +01:00
Paulus Schoutsen 2fe48702f3
Fix statistics registering at start callback (#60963) 2021-12-04 09:17:13 +01:00
Franck Nijhof b2ee62ba8d
Upgrade luftdaten to 0.7.1 (#60970) 2021-12-04 00:16:00 -08:00
Franck Nijhof 1485020a2e
Upgrade netdata to 1.0.1 (#60971) 2021-12-04 00:15:26 -08:00
Marc Mueller 156435d1c2
Update integrations to use `async_setup_platforms` (#60956)
* Replace forward_entry_setup with setup_platforms

* Apply suggestions from code review

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

Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
2021-12-04 08:57:24 +01:00
J. Nick Koston 10e669e69e
Fix yeelight name changing to ip address if discovery fails (#60967) 2021-12-04 08:41:58 +01:00
Paulus Schoutsen b8071c688b
Correctly type the SSDP callback function (#60964) 2021-12-03 23:24:22 -08:00
J. Nick Koston 7fbe1dbc99
Remove legacy fan compatibility shim (#59781) 2021-12-03 21:57:46 -08:00
Aaron Bach 566716d697
Ensure that inactive RainMachine switch that is toggled on is toggled back off (#60959) 2021-12-03 21:05:01 -07:00
GitHub Action 68ca0a05c8 [ci skip] Translation update 2021-12-04 00:13:16 +00:00
Penny Wood dcf3bae500
Updated code as per comment in #60676 (#60682)
* Minor code refactor
2021-12-04 07:28:23 +08:00
Raman Gupta 8c3014169f
Fix nzbget datetime return value (#60953) 2021-12-04 00:01:48 +01:00
Franck Nijhof 3471a44f92
2022! Happy New Year! (#60936) 2021-12-03 21:06:14 +01:00
Chen-IL ac26c2378b
Add temperature sensors for Asuswrt (#58303)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-03 11:27:17 -08:00
J. Nick Koston 0dfc86956b
Reduce flux_led dhcp matching complexity (#60934) 2021-12-03 20:26:15 +01:00
Clifford Roche d6c27809dc
Gree update device ips when changed (#57876) 2021-12-03 11:18:53 -08:00
Raman Gupta 788a9bd9f7
Clean up eight_sleep code (#58508) 2021-12-03 11:17:00 -08:00
Marc Mueller b60b38c6f6
Fix amcrest pylint issue (#60932) 2021-12-03 20:14:21 +01:00
Jonathan Keslin c915aa1493
Update volvooncall, add hybrid plug status (#58919) 2021-12-03 11:07:03 -08:00
jjlawren 171b57bf32
Use _attrs where possible in Sonos (#60931) 2021-12-03 10:57:19 -08:00
Allen Porter ba99dc3af9
Add Nest Battery Cam event clip support with a Nest MediaSource (#60073) 2021-12-03 10:53:05 -08:00
Matthias Alphart 40f1b0d3a5
Add quality scale for Fronius (#60531) 2021-12-03 19:43:01 +01:00
dougiteixeira fdb13726f6
Add more Tuya Vacuum sensors and select entities (#60927)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-03 19:38:32 +01:00
epenet b65b25c1bb
Move MqttServiceInfo to init.py (#60905)
Co-authored-by: epenet <epenet@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-03 19:34:48 +01:00
Franck Nijhof 74d1c340d7
Allow use of relative_time as a filter (#60923) 2021-12-03 19:30:12 +01:00
David F. Mulcahey 02b5449648
Add support for siren entities in ZHA (#60920) 2021-12-03 19:23:57 +01:00
Bram Kragten df36b3dcb8
Update frontend to 20211203.0 (#60925) 2021-12-03 10:20:09 -08:00
Erik Montnemery e50a47621f
Enable basic type checking for climacell (#55334) 2021-12-03 10:08:23 -08:00
jjlawren cbf2bf2e1f
Add audio input format sensor to Sonos HT devices (#60884) 2021-12-03 10:06:56 -08:00
Marius b61dede826
Add command_line icon_template (#58877)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-12-03 10:06:32 -08:00
Pedro Rodriguez Tavarez e0562385f1
Implement privacy_mode for amcrest integration (#57210) 2021-12-03 10:00:39 -08:00
Tobias Sauerwein cf7a614309
Add battery sensor for Netatmo climate devices (#60911) 2021-12-03 09:33:24 -08:00
yanuino a80447f096
Use state class enum for DHT (#60916) 2021-12-03 18:32:04 +01:00
Marvin Wichmann 3baa7b679d
Use new Platform enum in KNX (#60902) 2021-12-03 09:29:38 -08:00
Matthias Alphart 77cd751543
DHCP discovery for Fronius integration (#60806)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-03 18:29:15 +01:00
epenet 75ec937359
Use new Platform enum in Renault (#60903)
* Use Platform enum in Renault

* Use Platform enum in Renault tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:28:04 -08:00
epenet 231d434b76
Use new Platform enum in Onewire (#60904)
* Use new Platform enum in Onewire

* Use Platform in tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:25:22 -08:00
epenet a6cd3e2a02
Use dataclass properties in yeelight (#60912)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:20:58 -08:00
epenet adf2fa5664
Use EntityCategory enum in Onewire (#60907)
* Use EntityCategory enum in Onewire

* Add checks for the entity_category

* Fix typo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:20:00 -08:00
Erik Montnemery 17dc609363
Correct validation of conditions in scripts and automations (#60890)
* Correct validation of conditions in scripts and automations

* Fix test
2021-12-03 09:08:28 -08:00
Marc Mueller f57d42a9e8
Use platform enum (1) [A-D] (#60908)
* Use platform enum (1) [A-D]

* Fix imports

* Fix tests

* Use Platform even in tests
2021-12-03 08:51:30 -08:00
Bram Kragten ef458b237c
Return if user is local only (#60917) 2021-12-03 16:34:26 +01:00
jjlawren b883014ed4
Add Sonos subwoofer and surround on/off controls (#60918) 2021-12-03 16:05:40 +01:00
jjlawren 7d8b3e9de3
Bump soco to 0.25.0 (#60915) 2021-12-03 15:34:18 +01:00
Martin Hjelmare deae8dd07b
Bump pytradfri to 7.2.1 (#60910) 2021-12-03 15:30:09 +01:00
epenet 358922db56
Use dataclass for HassioServiceInfo (#60824)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 14:05:56 +01:00
Franck Nijhof e8b4b70747
Mark config schema as removed in Verisure (#60896) 2021-12-03 11:22:28 +01:00
Joakim Sørensen d784c8dd1a
Remove Supervisor panel title and icon (#60894) 2021-12-03 10:35:57 +01:00
Tuen Lee 85293d8073
Update tuya cover, fix Up/down position (#59858) 2021-12-03 10:23:15 +01:00
Maciej Bieniek 67f9118cbf
Use native datetime value in Brother uptime sensor (#60363) 2021-12-03 09:58:27 +01:00
Marvin Wichmann 707fe67c00
Move StrEnum to homeassistant.backports and move Platform to homeassistant.const (#60880)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-03 09:31:17 +01:00
Jan Bouwhuis 3188a364e2
Add template filters pack and unpack (#60836)
* add pack and unpack template filters

* Add unpack test with offset

* use unpack_from

* Simplify unpack_from statement
2021-12-03 08:58:15 +01:00
Erik Montnemery 9f4a99fe81
Revert "Add bytes support for bitwise template operations" (#60854) 2021-12-03 08:50:29 +01:00
ollo69 c33e3e465b
Use entity category enums in AsusWrt (#60882) 2021-12-03 08:37:51 +01:00
ollo69 8eb056396c
Use entity category enums in Nut (#60883) 2021-12-03 08:37:19 +01:00
epenet 4207d5a85f
Use dataclass properties in upnp (#60893)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-02 23:32:42 -08:00
Kevin Worrel e1b4e40ac6
Limit parallel updates for screenlogic number ents (#60886) 2021-12-02 20:43:15 -10:00
Kevin Worrel 9d1985ab03
Move screenlogic SCG levels to number platform (#60872)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-02 16:36:31 -10:00
puddly 4758a4fdc8
Bump ZHA dependency zigpy-znp from 0.6.1 to 0.6.3 (#60871) 2021-12-02 20:27:35 -05:00
GitHub Action 42fff989d1 [ci skip] Translation update 2021-12-03 00:13:00 +00:00
Paulus Schoutsen e8c6e0ef2b
Bump frontend to 20211202.0 (#60877) 2021-12-02 15:19:09 -08:00
Erik Montnemery 0e3bc21d54
Teach state and numeric_state conditions about entity registry ids (#60841) 2021-12-02 14:55:12 -08:00
Erik Montnemery a07f75c6b0
Revert "Allow template int filter to render from a bytes based integer" (#60855) 2021-12-02 14:37:19 -08:00
Franck Nijhof c8b0a3b667
Revert "Move Platform StrEnum to const" (#60875) 2021-12-02 14:19:08 -08:00
Franck Nijhof 6e220d5d17
Move Platform StrEnum to const (#60857) 2021-12-02 22:30:52 +01:00
David F. Mulcahey fd8e7ae5d9
Add PPB VOC sensor to ZHA (#60853) 2021-12-02 16:05:15 -05:00
Franck Nijhof 3c66706a49
Clean up deprecated sanitize_filename and sanitize_path (#60859) 2021-12-02 15:35:11 -05:00
Aaron Bach 3f2519bedf
Reorganize Guardian services (#58632) 2021-12-02 09:47:15 -10:00
Aaron Bach 9aa0994809
Add configuration URL for SimpliSafe (#60860) 2021-12-02 09:42:31 -10:00
epenet 0723b1c539
Introduce HassioServiceInfo (#60844)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-02 11:17:54 -08:00
Aaron Bach e641214c60
Reorganize SimpliSafe services (#58722) 2021-12-02 09:07:14 -10:00
Paulus Schoutsen d9c567e205
Fix Ring sensors with timestamp class returning a string (#60850) 2021-12-02 19:55:52 +01:00
David F. Mulcahey c466f3767a
Bump ZHA dependencies (#60852) 2021-12-02 13:32:55 -05:00
MattWestb 2bc0493535
Adding presets for new tuya TRV (#60408)
Adding presets for _TZE200_2atgpdho and _TYST11_2atgpdho and also deleting it for Beca Smart with old Zigbee module then its looks like they is not releasing devices with it.
2021-12-02 13:32:35 -05:00
Erik Montnemery 5b8d081441
Teach zone trigger about entity registry ids (#60838) 2021-12-02 10:28:21 -08:00
Erik Montnemery a67a4873dc
Minor refactor of template cover (#59537) 2021-12-02 10:26:10 -08:00
dougiteixeira 824e5ed6b8
Tuya Vacuum: Adjusted comand PAUSE (#60849) 2021-12-02 19:12:58 +01:00
jjlawren 60adccd549
Do not print full traceback during Sonos resubscription failure (#60644) 2021-12-02 08:11:08 -10:00
Erik Montnemery 411b0f0b15
Generate external statistics in demo component (#58470) 2021-12-02 09:55:46 -08:00
J. Nick Koston 8e0ef52cc8
Ensure sonos ssdp callbacks use dataclass methods (#60782) 2021-12-02 09:53:08 -08:00
epenet 0c18d710cc
Use dataclass properties in yamaha_musiccast (#60787)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-02 09:50:35 -08:00
epenet 66494b0238
Use dataclass properties in dlna_dmr (#60794)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-02 09:49:34 -08:00
epenet d775c66194
Tidy up ssdp_location parsing (#60846)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-02 09:47:20 -08:00
Erik Montnemery 36734972f0
Teach numeric state trigger about entity registry ids (#60835) 2021-12-02 09:45:40 -08:00
Shay Levy f46055de99
Fix Shelly device name for older firmware (#60826) 2021-12-02 09:26:00 -08:00
jjlawren e56a676fd5
Import helpers in Sonos instead of accessing `hass` (#60848) 2021-12-02 18:21:49 +01:00
Franck Nijhof 7d3fcfbd30
Add Platform StrEnum to entity_platform (#60818) 2021-12-02 09:07:09 -08:00
Ville Skyttä 4107063a5a
Make entity registry disabled_by an enum (#60424) 2021-12-02 18:02:29 +01:00
Kyle Hildebrandt d6dff403c9
Set _attr_is_on to True for avion on init (#60433) 2021-12-02 16:37:29 +01:00
Matt 7019c524fa
Add configuration_url to Forecast.Solar integration (#60384)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-02 16:36:41 +01:00
Martin Hjelmare c8781bbe3b
Simplify zwave_js USB discovery add-on form (#60845) 2021-12-02 16:30:01 +01:00
Franck Nijhof bf6ca2527d
Upgrade guppy3 to 3.1.2 (#60842) 2021-12-02 15:58:00 +01:00
Teemu R 82f26392b4
Bump xiaomi_miio dependency (#60807) 2021-12-02 15:03:03 +01:00
Erik Montnemery c85bb27d0d
Teach state trigger about entity registry ids (#60271)
* Teach state trigger about entity registry ids

* Tweak

* Add tests

* Tweak tests

* Fix tests

* Resolve entity ids during config validation

* Update device_triggers

* Fix mistake

* Tweak trigger validator to ensure we don't modify the original config

* Add index from entry id to entry

* Update scaffold

* Pre-compile UUID regex

* Address review comment

* Tweak mock_registry

* Tweak

* Apply suggestion from code review
2021-12-02 14:26:45 +01:00
Matthias Alphart c0fb1bffce
Use Enums in EntityDescriptions in Fronius (#60832) 2021-12-02 12:43:59 +01:00
Matthias Alphart f2f6602890
Add support for Ohmpilots to Fronius integration (#60765)
* add support for Fronius Ohmpilot

* disable the debugger
2021-12-02 11:05:22 +01:00
J. Nick Koston da2fb17d94
Update flux_led for upstream strict typing (#60800)
- Bump library to 0.25.10

- Changelog: https://github.com/Danielhiversen/flux_led/compare/0.25.2...0.25.10

- This is a squashed version of #60554 since that one keeps failing to restore the python env on 3.9
2021-12-02 10:55:06 +01:00
Tobias Sauerwein 653fb5b637
Update Netatmo climate platform (#59974) 2021-12-02 10:31:54 +01:00
Jan Bouwhuis 3307e54363
Add MQTT availability template and encoding (#60470)
* Add MQTT availability template and encoding

* use generic encoding field

* pylint and cleanup

* remove additional topic check
2021-12-02 10:21:31 +01:00
Franck Nijhof 42bae5439b
Add support for Christmas Tree pickup to TwenteMilieu (#60822) 2021-12-02 10:21:19 +01:00
Franck Nijhof 4c158e8168
Upgrade twentemilieu to 0.5.0 (#60820) 2021-12-02 10:00:16 +01:00
Simone Chemelli 00605c1e35
Fix old model network suffix for Fritz (#60802) 2021-12-02 09:59:07 +01:00
Tobias Sauerwein 63c377a239
Use state class enums in airvisual (#60819) 2021-12-02 09:53:02 +01:00
Milan Meulemans 831e69d07c
Use callback instead of coroutine function (#60821) 2021-12-02 09:52:19 +01:00
Tobias Sauerwein a9b2036de1
Use state class enums in aemet (#60817) 2021-12-02 09:26:39 +01:00
Thomas Dietrich bee3c9102c
Add binary characteristics, add deprecation warning for optional state_characteristic parameter (#60402)
* Add binary source sensor statistics

* Make state_characteristic a required parameter

* Move binary unitless testcase

* Add testcases for binary characteristics

* Revert charact. to optional with deprecation warning

* Correctly check for binary supported characteristic
2021-12-02 09:03:24 +01:00
Franck Nijhof 9128dc214c
Upgrade apprise to 0.9.6 (#60816) 2021-12-02 08:54:52 +01:00
Tobias Sauerwein c033348323
Use state class enums in Advantage Air (#60815) 2021-12-02 08:45:16 +01:00
Tobias Sauerwein d619a86b4e
Use state class enums in AccuWeather (#60813) 2021-12-02 08:24:59 +01:00
Milan Meulemans caa04c1866
Add support for Nanoleaf push updates (#60708) 2021-12-01 17:50:17 -10:00
Franck Nijhof 0c4b308e03
Use device class enum in Stookalert (#60789) 2021-12-01 22:16:09 -05:00
Franck Nijhof 58fdcfb6b8
Use device/state class enums in DSMR (#60791) 2021-12-01 22:15:17 -05:00