Commit Graph

33805 Commits (abc7dcf6bf45f5266a350ee78b5d63f0054ebb77)

Author SHA1 Message Date
epenet b0cfc76add
Use new enums in smarthab (#62208)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-19 13:04:52 +01:00
Klaas Schoute 779ce6216c
Change unload for P1 Monitor (#62213) 2021-12-19 13:03:06 +01:00
Robert Hillis d52caf77d5
Finish using enums in srp_energy (#62192) 2021-12-19 13:02:29 +01:00
Franck Nijhof 7fe895e554
Add unique ID to config entry in Luftdaten (#62176) 2021-12-19 12:42:52 +01:00
Robert Hillis b559d8845e
Use enums in zwave_js (#62130)
* Use enums in zwave_js

* oops
2021-12-19 12:28:09 +01:00
Matthias Alphart 1cbcb9e2fd
Don't add Fronius entities with unknown state (#62282) 2021-12-19 11:49:21 +01:00
Matthias Alphart 37bed64607
Silently retry Fronius inverter endpoint 2 times (#61826) 2021-12-19 11:37:14 +01:00
Andre Lengwenus 38cb477e7b
Cleanup tests for lcn events and device triggers (#61719)
* Return PchkConnectionManager instance from init_integration

* Removed ip and port from LCN host model identifer

* Fix syntax error

* Convert init_integration to a fixture

* Rename device model for host

* Instantiate MockPchkConnectionManager with arguments from tests

* Invert logic for testing devices
2021-12-19 10:38:33 +01:00
J. Nick Koston 615872a5d1
Align zeroconf matching with ZeroconfServiceInfo (#62133) 2021-12-19 02:09:21 -06:00
Allen Porter a63fa53275
Persist nest media events to disk backed storage (#61641)
* Persist nest media events to disk backed storage

Persist nest events in the media player to disk, targeting about ~500mb
per camera device as a cap. Events are stored in config/nest/event_media/.

Add a NestEventMediaStore is used for persistence. It has three main jobs:
- Read/write the key/value data that holds event data (event type, time, device, etc)
- Read/write media contents to disk
- Pick the filename for the media event based on device and event deatils

The nest event media manager library handles cache management and eviction, and by
default uses an in memory cache. Home Assistant nest integration now provides the
disk backed implementation, which is invoked by the nest library.

The store reads the event metadata key/value dict on startup, and then writes it
back with a short delay of 5 seconds to avoid unnecessary writes.

Future work planned includes:
- Possibly a small memory buffer for media objects themselves. This could make sense
  when adding thumbnails to the media player grid to avoid unnecessary fetches
- Transcoding mp4 clips to animated image previews

* Address style errors

* Cleanup from CI test/pylint/etc.

* Put media for each device into its own directory

* Update comments for media store

* Decrease # of events to lower disk requirements

Target more like 1k events, to reduce disk needs.

* Address PR feedback

* Update homeassistant/components/nest/media_source.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Ignore incorrect mypy in nest library

* Fix pylint errors

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-18 23:53:40 -08:00
J. Nick Koston e834382b9a
Add pico remote support to non-pro lutron caseta bridges (#61032) 2021-12-19 01:41:02 -06:00
J. Nick Koston a6b680cd32
Add support for enabling/disabling cloud access in flux_led (#61138)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-19 00:59:16 -06:00
J. Nick Koston d7c5e41802
Add hardware version to bond (#62256) 2021-12-18 22:30:44 -08:00
Simone Chemelli 90345b1cf2
Fix logging for Shelly climate platform (#62264)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-18 22:28:26 -08:00
J. Nick Koston 4572fec680
Bump flux_led to 0.27.8 to fix discovery of older devices (#62292) 2021-12-18 22:27:34 -08:00
J. Nick Koston 7764c957ba
Avoid setting nexia humidity to the same value since it causes the api to fail (#61843) 2021-12-18 22:26:19 -08:00
J. Nick Koston 03477e0ae6
Split august motion and image capture binary sensors (#62154) 2021-12-18 22:25:30 -08:00
Aaron Bach ebfe9aa384
Add a switch to opt-in to/opt-out of the next Ridwell pickup (#62293)
* Add buttons to opt into/out of the next Ridwell pickup

* Buttons finished

* Coverage

* better name

* Move to switch

* Clean up

* Coverage

* Use correct exception
2021-12-18 23:06:17 -07:00
J. Nick Koston a4c101b021
Add network support to flux_led discovery (#61132) 2021-12-18 21:55:57 -08:00
J. Nick Koston a40549c1b9
Fix hw_version not updating from an entity device_info (#62254) 2021-12-18 21:53:49 -08:00
Paulus Schoutsen 6fd617a89e
Bump ring to 0.7.2 (#62299) 2021-12-18 23:41:59 -06:00
Michael Chisholm f280b03df8
Update async-upnp-client library to 0.23.1 (#62298) 2021-12-18 23:41:32 -06:00
epenet 931d51949d
Use new DeviceClass enums in homekit (#61665)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-18 19:07:04 -06:00
GitHub Action d3710c7ba6 [ci skip] Translation update 2021-12-19 00:14:45 +00:00
Aaron Bach 98c398cc37
Bump aioridwell to 2021.12.2 (#62284) 2021-12-18 16:26:37 -07:00
micha91 ba79de56ab
Move Device Class definition to Home Assistant for MusicCast Select Entities (#61218)
* Add a device class mapping to the consts to map from capability IDs to HA device classes.

* Use python3.8 compliant typing

* Fix return type

* Use relative import for musiccast const
2021-12-19 00:18:42 +01:00
J. Nick Koston 4dc70536b6
Fix Non-thread-safe operation in rflink binary_sensor (#62286) 2021-12-19 00:14:41 +01:00
J. Nick Koston b05149fc28
Fix Non-thread-safe operation in zwave node_added (#62287) 2021-12-18 23:17:54 +01:00
Chris Talkington 99d1e015ad
Update rokuecp to 0.8.5 (#62285) 2021-12-18 14:50:49 -06:00
starkillerOG 58bcf275f5
Add xiaomi miio gateway hw version (#62274) 2021-12-18 17:46:16 +01:00
Robert Hillis 78f2866f98
Finish using enums in wled (#62189) 2021-12-18 16:17:55 +01:00
Martin Hjelmare ff530dce0d Fix fitbit no SSL URL handling (#62270) 2021-12-18 15:00:07 +01:00
epenet 93cba53860
Use new enums in smappee (#62209)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-18 14:56:13 +01:00
Robert Hillis af631b90e5
Use enums in statistics tests (#62191) 2021-12-18 14:54:26 +01:00
epenet a39f0643e8
Use new enums in smart_meter_texas (#62210)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-18 14:53:50 +01:00
epenet ac0fa3cbf8
Use new enums in smarttub (#62216)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-18 14:51:39 +01:00
J. Nick Koston 051a6499b8
Add software version to screenlogic (#62255) 2021-12-18 14:49:29 +01:00
J. Nick Koston b1ac1596d8
Add ATTR_HW_VERSION to homeassistant.const (#62258) 2021-12-18 14:46:22 +01:00
starkillerOG c40b02896a
Hyperion add entity category (#62268) 2021-12-18 14:45:53 +01:00
starkillerOG 503a5cbd44
Motion blinds add entity category (#62266) 2021-12-18 14:23:34 +01:00
Franck Nijhof e2c65a3034
Upgrade tailscale to 0.1.6 (#62267) 2021-12-18 14:18:31 +01:00
starkillerOG c178fd0cc3
Add entity category to DSMR (#62262) 2021-12-18 13:53:21 +01:00
starkillerOG ca9b26e829
bump pynetgear to 0.8.0 (#62261) 2021-12-18 13:29:52 +01:00
starkillerOG c4879d71a1
Add Netgear entity category and configuration url (#62260)
* add entity category

* add configuration_url

* add import
2021-12-18 12:34:16 +01:00
GitHub Action 5fefb5985f [ci skip] Translation update 2021-12-18 00:13:26 +00:00
Teemu R b50a5d32a7
Remove myself from yeelight codeowners (#62239) 2021-12-17 18:00:04 -06:00
Diego Elio Pettenò 6ce99bfc80
Bump async-upnp-client to 0.23.0 (#62223) 2021-12-17 16:57:02 -06:00
epenet c59ae54dc8
Use new enums in sonos (#62202) 2021-12-17 13:35:21 -06:00
jkuettner 3b97c544b1
Fix "vevent" KeyError in caldav component (#61718) 2021-12-17 16:54:19 +01:00
Aaron Bach a9fc750fe3
Fix spurious RainMachine config entry reload (#62215) 2021-12-17 08:31:23 -07:00
Eric Severance d874eb261d
Fix Wemo create task for awaitable (#62159) 2021-12-17 16:23:53 +01:00
Maximilian 703b689183
Address late review of nina (#61915) 2021-12-17 16:14:59 +01:00
Hans Oischinger ed1ce7d9f9
Add vicare strings (#61593)
* Add vicare strings

* Remove duplicates

* Remove duplicates from english translation

* Add missing strings
2021-12-17 15:43:41 +01:00
Klaas Schoute 177ffa3aa6
Upgrades P1 Monitor to v1.0.1 (#62201) 2021-12-17 15:23:04 +01:00
Peeter N 571b245b7e
Add battery entity for Maxcube devices (#58699) 2021-12-17 15:02:28 +01:00
Kim Frellsen 9cd82e0f00
Update fortios device_tracker (#61970)
* FortiOS 7.0 support

Added support for FortiOS 7.0 and retaining FortiOS 6.4 support.
Since an API was deprecated in FortiOS 7.0 and replace by a new API the integration now also support FortiOS 7.0.
It is planned to deprecate the support for FortiOS 6.4 in a year

* updated requirement to fortios

* Update device_tracker.py

indentation fix

* Update device_tracker.py

run flake8 fixes

* flake8 fixes

* Update device_tracker.py

black fixing line breaks

* Update device_tracker.py

black fixes

* Update device_tracker.py

linter fixes

* Update device_tracker.py

linter fixes

* Update device_tracker.py

linter fix

* Update device_tracker.py

removed comment that pylint does not like :-~

* Update homeassistant/components/fortios/device_tracker.py

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

* Update homeassistant/components/fortios/device_tracker.py

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

* Update homeassistant/components/fortios/device_tracker.py

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

* Update device_tracker.py

to resolve double guard for supported versions.

* updated fortios device tracker

Deprecated old api.
cleaned up code.
better checking with try-catch
removed unnecessary error output.

* Update device_tracker.py

lint compliance.

* Update device_tracker.py

lint updates

* Update device_tracker.py

lint updates

* Update device_tracker.py

lint updates

* Update device_tracker.py

lint updates

* Update device_tracker.py

updated to use awesomeversion component.

* Update device_tracker.py

pylint updates

* Update device_tracker.py

pylint updates

* Clean up

* Simplify

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-17 14:20:23 +01:00
Erik Montnemery f7f1d9b15d
Fix threading error in litejet (#62185) 2021-12-17 13:16:44 +01:00
Daniel Hjelseth Høyer 9c749682bf
Add Tibber peak hour, monthly consumption and monthly cost sensors (#61853)
* Tibber, Consumption data

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tibber sensors

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tibber, Consumption data

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Add peak_hour_time

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-17 12:55:16 +01:00
Robert Hillis 1c15e36afc
Use enums in wallbox (#61997) 2021-12-17 12:46:21 +01:00
Erik Montnemery 6b9447e3a2
Fix threading error in demo vacuum (#62165) 2021-12-17 12:45:53 +01:00
epenet 8cde2e805b
Use new SensorDeviceClass enum in climacell (#61362)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-17 12:44:29 +01:00
Ernst Klamer e771421ed0
Move Solarlog state to entity description (#62093)
* Move value to const

* Move value to const

* remove cast

* Remove Statetype import

* Add in and output for callable

* fix mypy

* Add int to callable

* fix callable

* Only convert value

* Add datetime import

* Update homeassistant/components/solarlog/const.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-17 12:40:32 +01:00
Aidan Timson 0f2a3c074e
Force Lyric token refresh on first authentication failure (#62100) 2021-12-17 12:33:41 +01:00
Erik Montnemery 8c777011b6
Fix threading error in qwikswitch (#62173) 2021-12-17 12:03:29 +01:00
Erik Montnemery 9164a74fcc
Fix threading error in zha (#62170) 2021-12-17 11:42:15 +01:00
Erik Montnemery 112e259437
Fix threading error in scripts with repeat or choose actions (#62168) 2021-12-17 11:41:54 +01:00
Marcel van der Veldt ad171944da
Add guard in call to activate_scene in Hue (#62177) 2021-12-17 10:50:10 +01:00
Ian a6cfbd4072
Nextbus upcoming sort as integer (#61416) 2021-12-17 09:39:55 +01:00
sindudas 67255d4b52
Update ebusdpy version (#59899) 2021-12-17 09:34:27 +01:00
Simone Chemelli 72e1fa1392
Improve availability for Shelly Valve (#62129) 2021-12-17 09:16:02 +01:00
Allen Porter beb824c452
Bump google-nest-sdm to 0.4.9 (#62160) 2021-12-17 09:07:51 +01:00
J. Nick Koston ccf8dcd14a
Fix Non-thread-safe operation in logbook (#62148) 2021-12-17 08:19:07 +01:00
J. Nick Koston 8bf58df624
Fix Non-thread-safe operation in homekit light events (#62147) 2021-12-17 08:17:32 +01:00
GitHub Action d4f8a7c056 [ci skip] Translation update 2021-12-17 00:14:01 +00:00
Dave T ec4a9be4e6
Use EntityCategory Enums in elkm1 (#62123) 2021-12-16 23:41:17 +01:00
Robert Hillis b7ece5ae00
Use enums in pvpc_hourly_pricing (#62076) 2021-12-16 23:27:15 +01:00
Robert Hillis da60680b2f
Use enums in rachio (#62056) 2021-12-16 23:26:53 +01:00
Matthias Alphart 2f3f64c339
Use DeviceClass Enum in KNX schema (#61960) 2021-12-16 23:25:34 +01:00
Robert Hillis 72462b5dd1
Use enums in satel_integra (#62048) 2021-12-16 23:24:46 +01:00
epenet dce9d551f8
Use new SensorDeviceClass in juicenet (#61828) 2021-12-16 23:13:26 +01:00
epenet 42c7c38515
Use new enums in nam (#61940) 2021-12-16 23:05:34 +01:00
epenet 61cdc04f3f
Use new enums in nanoleaf (#61938) 2021-12-16 23:03:37 +01:00
epenet e20029d87f
Use attr** in meteoalarm (#61895)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 23:01:31 +01:00
epenet 863a139b6f
Use _attr_attribution in goalzero (#61890)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 23:00:04 +01:00
epenet d26454a313
Use _attr_attribution in flipr (#61889)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 22:59:29 +01:00
epenet 98e1b7c95d
Use attr** in linux-battery (#61883)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 22:59:05 +01:00
epenet 6778e4058e
Use attr** in lightwave (#61881)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 22:57:15 +01:00
epenet bb538a9782
Use new enums in motion_blinds (#61931) 2021-12-16 22:47:23 +01:00
epenet b3105dc218
Use new enums in nuki (#61949) 2021-12-16 22:45:48 +01:00
epenet c4c9dc8cee
Use new enums in neurio_energy (#61953) 2021-12-16 22:45:27 +01:00
epenet 39590f9917
Use new enums in nissan_leaf (#61951) 2021-12-16 22:44:50 +01:00
epenet 81ea811b74
Use new enums in nextbus (#61954) 2021-12-16 22:44:17 +01:00
epenet 890dcfee11
Use new enums in netgear_lte (#61955) 2021-12-16 22:42:52 +01:00
epenet 4bfc3eb22f
Use new enums in netatmo (#61941) 2021-12-16 22:42:29 +01:00
Robert Hillis 6f54636baf
Use enums in rainforest_eagle (#62057) 2021-12-16 22:38:26 +01:00
Robert Hillis 0ee5691f77
Use enums in roomba (#62045) 2021-12-16 22:36:01 +01:00
Robert Hillis a16f963605
Use enums in pi_hole (#62064) 2021-12-16 22:34:59 +01:00
Eduard van Valkenburg 6ba11fe6c7
Brunt dependency bump to 1.0.2 (#62014) 2021-12-16 22:33:03 +01:00
Robert Hillis 83cb2d11d5
Use enums in xiaomi_miio (#61979) 2021-12-16 22:31:51 +01:00
Robert Hillis 32e1a3d063
Use enums in Point (#62070) 2021-12-16 22:29:54 +01:00