Commit Graph

10395 Commits (4e2195baa17e946198f5cd4888538be15f1f14b8)

Author SHA1 Message Date
Robert Hillis 4e2195baa1
Remove deprecated yaml config from environment canada (#61839) 2021-12-19 13:40:39 +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
Dave T b01078199a
Use DeviceClass Enums in filter tests (#62138) 2021-12-19 13:01:54 +01:00
Franck Nijhof 7fe895e554
Add unique ID to config entry in Luftdaten (#62176) 2021-12-19 12:42:52 +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
Allen Porter 832184bacd
Speed up stream tests by 40-50% with shared data (#62300) 2021-12-18 23:14:21 -08: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
J. Nick Koston 03477e0ae6
Split august motion and image capture binary sensors (#62154) 2021-12-18 22:25:30 -08:00
Dave T afdc570d70
Use DeviceClass Enums in homekit_controller tests (#62219) 2021-12-18 23:56:59 -06: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
Eric Severance 8d6763eaad
Add wemo config_flow test to get 100% coverage (#62158) 2021-12-18 23:43:31 -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
Robert Hillis 78f2866f98
Finish using enums in wled (#62189) 2021-12-18 16:17:55 +01:00
Robert Hillis af631b90e5
Use enums in statistics tests (#62191) 2021-12-18 14:54:26 +01:00
Diego Elio Pettenò 6ce99bfc80
Bump async-upnp-client to 0.23.0 (#62223) 2021-12-17 16:57:02 -06:00
J. Nick Koston a0cd29bbcf
Fix threading error in stream tests (#62221) 2021-12-17 09:26:30 -08:00
Robert Hillis 3bd1f00b76
Use enums in samsungtv tests (#62195)
* Use enums in samsungtv tests

* uno mas
2021-12-17 16:26:53 +01:00
Robert Hillis 5e0eb0eb4d
Use enums in roku tests (#62196) 2021-12-17 16:25:37 +01:00
Robert Hillis 8683a30380
Use enums in utility_meter tests (#62190)
* Use enums in utility_meter tests

* uno mas
2021-12-17 16:22:46 +01:00
Dave T 1a32b10af8
Use DeviceClass Enums in greeneye_monitor tests (#62143)
* Use DeviceClass Enums in greeneye_monitor tests

* Use is for comparisons
2021-12-17 16:19:41 +01:00
Maximilian 703b689183
Address late review of nina (#61915) 2021-12-17 16:14:59 +01:00
Peeter N 571b245b7e
Add battery entity for Maxcube devices (#58699) 2021-12-17 15:02:28 +01:00
Erik Montnemery 474ef54477
Fix threading error in recorder tests (#62187) 2021-12-17 13:17:48 +01:00
Erik Montnemery 6b9447e3a2
Fix threading error in demo vacuum (#62165) 2021-12-17 12:45:53 +01:00
Robert Hillis 85c122f3e5
Use enums in unifi tests (#62151) 2021-12-17 11:12:43 +01:00
Robert Hillis 499cae9900
Use enums for testing_config (#62140) 2021-12-17 11:10:06 +01:00
Robert Hillis 626a3f35f5
Use enums in helpers tests (#62141) 2021-12-17 11:09:24 +01:00
Robert Hillis 07532c3153
Use enums in sensor tests (#62152) 2021-12-17 11:07:18 +01:00
Ian a6cfbd4072
Nextbus upcoming sort as integer (#61416) 2021-12-17 09:39:55 +01:00
Dave T 4418b0a43e
Use DeviceClass Enums in gogogate2 tests (#62137) 2021-12-17 08:45:39 +01:00
Dave T 28e373297f
Use DeviceClass Enums in gios tests (#62135) 2021-12-17 08:43:03 +01:00
Dave T b25595289e
Use DeviceClass Enums in forecast_solar tests (#62132) 2021-12-17 08:38:37 +01:00
Dave T f55668ff40
Use DeviceClass Enums in blebox tests (#62109) 2021-12-17 08:28:31 +01:00
Dave T c710958261
Use DeviceClass Enums in goalzero tests (#62136) 2021-12-16 22:52:25 -08:00
Dave T 569d5644ab
Use DeviceClass Enums in google_assistant tests (#62142) 2021-12-16 22:50:46 -08:00
Dave T 82e11aecca
Use DeviceClass Enums in efergy tests (#62119) 2021-12-16 23:40:58 +01:00
Dave T f92baffd09
Use DeviceClass Enums in energy tests (#62122) 2021-12-16 23:40:24 +01:00
Dave T f02e9eb70f
Use DeviceClass Enums in directv tests (#62118) 2021-12-16 23:34:07 +01:00
Dave T 61f2f9d9ac
Use DeviceClass Enums in devolo_home_control tests (#62116) 2021-12-16 23:27:44 +01:00
Dave T 16e152b797
Use DeviceClass Enums in axis tests (#62096) 2021-12-16 23:26:23 +01:00
Dave T dab1a786a5
Use DeviceClass Enums in arlo tests (#62095) 2021-12-16 22:11:08 +01:00
Dave T 9e4f720591
Use DeviceClass Enums in elgato tests (#62121) 2021-12-16 22:07:52 +01:00
rianadon 3b3ab2c19c
Handle None values in weather entity forecast (#61467) 2021-12-16 22:01:32 +01:00