Commit Graph

33451 Commits (89a6640b82a39602142cc1cc9ebb1fa057a172c9)

Author SHA1 Message Date
epenet 50940844b8
Use new enums in devolo_home_network (#61348)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 12:05:09 +01:00
epenet c5815ef936
Use new CoverDeviceClass enum in dynalite (#61354)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 12:04:25 +01:00
epenet 7389cdaf05
Use new SensorStateClass enum in dsmr_reader (#61352)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 12:03:45 +01:00
epenet 487c44e11d
Use _attr_* in dte_energy_bridge (#61353)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 11:55:42 +01:00
epenet 50e034d4f0
Use new SensorDeviceClass enum in dht (#61349)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 11:52:37 +01:00
Franck Nijhof 1ed490ce62
Fix date/datetime support for templates (#61088)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-09 11:43:48 +01:00
epenet 5b8f8772d2
Use _attr_* in delijn (#61344)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 11:39:57 +01:00
epenet f4d66f67d5
Use new DeviceClass and StateClass enums in darksky (#61342)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 11:10:26 +01:00
epenet cfb1002920
Use new DeviceClass and StateClass enums in daikin (#61340)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 11:07:58 +01:00
Erik Montnemery 8e58ea8397
Correct state class for Tasmota sensors (#61236)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-12-09 10:49:19 +01:00
Maikel Punie 22f71a89e0
Use new SensorDeviceClass and SensorStateClass in velbus (#61339) 2021-12-09 10:28:51 +01:00
Franck Nijhof 11ee0fb1d0
Upgrade tailscale to 0.1.4 (#61338) 2021-12-09 10:17:34 +01:00
epenet c5ffeb7809
Use new DeviceClass and EntityCategory enums in cloud (#61332)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:40:12 +01:00
epenet 8df0bc9d57
Use new BinarySensorDeviceClass enum in concord232 (#61335)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:24:07 +01:00
epenet 59878968b2
Use new DeviceClass and StateClass enums in comfoconnect (#61334)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:22:52 +01:00
epenet dff29639bd
Use new SensorStateClass enum in co2signal (#61333)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:22:02 +01:00
epenet fb7bab2a5d
Use new SensorDeviceClass in cert_expiry (#61331)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:20:56 +01:00
epenet dfc85fe372
Use new SensorDeviceClass enum in canary (#61330)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:20:10 +01:00
epenet bdbecc6c05
Use new SensorDeviceClass enum in buienradar (#61329)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:18:48 +01:00
epenet 172591031d
Use new CoverDeviceClass enum in brunt (#61328)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:18:20 +01:00
epenet 4818872591
Use new enums in brother (#61327)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:17:50 +01:00
epenet 9d25961bf3
Use new MediaPlayerDeviceClass enum in braviatv (#61325)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:16:37 +01:00
epenet 76bdf9bc25
Use new DeviceClass enums in bosch_shc (#61324)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:16:14 +01:00
epenet f7f50563dd
Use new DeviceClass enums in bloomsky (#61316)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:14:16 +01:00
epenet 23f21bd27a
Use new DeviceClass enums in blink (#61315)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:13:50 +01:00
epenet 730208028f
Use SensorDeviceClass enum in bh1750 (#61314)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:13:23 +01:00
epenet a7b631d650
Use DeviceClass and StateClass enums in bbox (#61309)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:12:54 +01:00
Daniel Hjelseth Høyer 4c542336d5
Add sensors to Mill local heaters (#61247)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-09 09:04:19 +01:00
Paulus Schoutsen 54e312e1f7
Fix hue groups inheritance (#61308) 2021-12-08 23:58:23 -08:00
Yehuda Davis f4f13b7074
Fix regression in Tuya cover is_closed logic (#61303) 2021-12-09 08:40:45 +01:00
epenet d7756efe55
Use DeviceClass and StateClass enums in broadlink (#61326)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:39:33 +01:00
epenet 6d61a4678d
Ues new SensorDeviceClass in bme680 (#61318)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:29:47 +01:00
epenet cf440f2452
Use SensorDeviceClass enum in beewi_smartclim (#61313)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:29:29 +01:00
epenet c7eae8b0bc
Use new SensorDeviceClass enum in bme280 (#61319)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:29:01 +01:00
epenet 0c96b27ab2
Use new SensorDeviceClass enum in bmp280 (#61320)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:28:37 +01:00
epenet a8d0a54553
Use new DeviceClass enums in bmw (#61321)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:28:08 +01:00
epenet a63900a5a8
Use new CoverDeviceClass in bond (#61322)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 08:26:37 +01:00
Paulus Schoutsen 2e65923205
Fix CO2signal error handling (#61311) 2021-12-09 07:50:30 +01:00
Paulus Schoutsen 8f238d6b53
Fix rova timezone (#61302) 2021-12-09 07:36:41 +01:00
J. Nick Koston 4933189ad9
Fix lookin failing to setup during firmware updates (#61305) 2021-12-08 22:21:11 -08:00
Allen Porter 9ffa3b21f6
Display nest media events using local time (#61143) 2021-12-08 21:49:40 -08:00
Stefan Agner a13ae85982
Introduce only_supervisor for @websocket_api.ws_require_user() (#61298) 2021-12-08 16:49:35 -08:00
GitHub Action 1f1a29cada [ci skip] Translation update 2021-12-09 00:13:16 +00:00
Paulus Schoutsen 17cf53677c
Rest fixes (#61296) 2021-12-08 14:35:50 -08:00
epenet af603d0427
Use new DeviceClass enums in alexa (#61263)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:35:52 +01:00
Dave T adf63d5116
Aurora ABB add entity category (#61231) 2021-12-08 22:34:47 +01:00
epenet 3e78c28a5b
Use _attr_* in android_ip_webcam (#61270)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:34:05 +01:00
epenet ebf9faac17
Use new SensorDeviceClass enum in atag (#61278)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:33:09 +01:00
epenet 7c09cff3ad
Use new DeviceClass and EntityCategory enums in august (#61288)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:15:15 +01:00
Daniel Hjelseth Høyer b2ae018837
Use new EntityCategory in Opengarage (#61285) 2021-12-08 22:14:43 +01:00
Daniel Hjelseth Høyer eb3fa12a6a
Use new EntityCategory enum in Switchbot (#61280) 2021-12-08 22:14:16 +01:00
Daniel Hjelseth Høyer d6725715a1
Use new EntityCategory in Tractive (#61289) 2021-12-08 22:13:01 +01:00
epenet d817b4c7ea
Use new BinarySensorDeviceClass enum in balboa (#61292)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:11:49 +01:00
epenet dff77e39ce
Use new BinarySensorDeviceClass enum in axis (#61291)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:09:19 +01:00
Daniel Hjelseth Høyer 503593b301
Use new EntityCategory in Mill (#61294) 2021-12-08 22:08:44 +01:00
Daniel Hjelseth Høyer 07d0b6f726
Use new EntityCategory in rfxtrx (#61295) 2021-12-08 22:08:05 +01:00
Daniel Hjelseth Høyer eae1e669d0
Use new EntityCategory enum in Tibber (#61279) 2021-12-08 22:04:11 +01:00
epenet c893ad80e4
Use new SwitchDeviceClass in aten_pe (#61281)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:03:51 +01:00
epenet fd7328ce23
Use new DeviceClass and StateClass enums in atome (#61284)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 22:03:24 +01:00
J. Nick Koston aca2c3a27a
Restore rest integration ability to follow http redirects (#61293) 2021-12-08 22:03:07 +01:00
epenet d2216363c5
Use new DeviceClass and StateClass enums in aseko_pool_live (#61276)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 21:57:25 +01:00
epenet 25db4a4f1f
Use new SensorDeviceClass in arwn (#61275)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 21:56:41 +01:00
epenet 84141ff3dd
Use new SensorDeviceClass in arlo (#61274)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 21:56:05 +01:00
epenet 880a2b69b6
Use new SensorDeviceClass in apcupsd (#61271)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 21:55:44 +01:00
epenet c0529ac1ce
Use new SensorDeviceClass enum in awair (#61290)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 21:54:50 +01:00
J. Nick Koston e130688141
Bump flux_led to 0.26.3 (#61287) 2021-12-08 12:54:41 -08:00
Daniel Hjelseth Høyer 1990b5b608
Use new EntityCategory enum in Surepetcare (#61282) 2021-12-08 10:46:30 -10:00
epenet c05eca1c82
Remove log flooding prevention logic from discovery info (#61243)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:28:26 -10:00
epenet 9c11bb8ba1
Use new SensorDeviceClass in aqualogic (#61272)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 21:21:49 +01:00
Paulus Schoutsen ce59ed2a5e
Guard cannot connect during Tuya init (#61267) 2021-12-08 21:21:33 +01:00
Paulus Schoutsen 3223332c1e
Use correct template parameter in Rest template rendering (#61269) 2021-12-08 12:19:22 -08:00
epenet 7215244c17
Use new DeviceClass and EntityCategory enums in advantage_air (#61255)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:19:10 -08:00
epenet fd58c1eff5
Use new SensorDeviceClass enums in aemet (#61256)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:18:14 -08:00
epenet 048bdd321e
Use new DeviceClass and StateClass enums in airly (#61258)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:41 -08:00
epenet 25224f6945
Use new SensorStateClass enum in airnow (#61259)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:20 -08:00
epenet 646da7a9b7
Use new EntityCategory enum in airthings (#61260)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:17:03 -08:00
epenet e460eec134
Use new CoverDeviceClass enum in aladdin_connect (#61262)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:16:43 -08:00
epenet c1a09d2bac
Use new DeviceClass and StateClass enums in ambee (#61264)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:59 -08:00
epenet 549b72e48e
Use new SensorStateClass enum in amberelectric (#61265)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:33 -08:00
epenet e4e0dcbae0
Use new BinarySensorDeviceClass enum in amcrest (#61268)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:13:18 -08:00
epenet 8a11cf3d1f
Use new DeviceClass, StateClass and EntityCategory enums in ambient_station (#61266)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 13:06:31 -07:00
epenet c71fe71654
Use new SensorDeviceClass enum in airvisual (#61261)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 12:49:02 -07:00
Paulus Schoutsen 77a74a9bf4
Fix smartthings timestamp sensor (#61254) 2021-12-08 11:44:53 -08:00
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