Commit graph

10623 commits

Author SHA1 Message Date
ollo69
5a41251d45
Add config_flow to AndroidTV integration (#54444)
Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com>
2021-12-20 13:08:35 -06:00
Eric Severance
2dfd4c49da
Fix Non-thread-safe operation in wemo tests (#62418) 2021-12-20 12:56:56 -06:00
Dave T
168fefad88
Use DeviceClass Enums in homekit (#62218) 2021-12-20 12:53:44 -06:00
Matthias Alphart
6cf9f1a0cc
Update xknx to 0.18.14 (#62411)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-20 19:22:04 +01:00
Ville Skyttä
334c6c5c02
Make device automation type an enum (#62354) 2021-12-20 19:16:30 +01:00
Dave T
ac0f655fd6
Use DeviceClass Enums in devolo_home_network tests (#62117) 2021-12-20 18:09:28 +01:00
Franck Nijhof
fc6c0b1d4a
Add input_button (#62008)
* Add input_button

* Update homeassistant/components/input_button/__init__.py

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

* Improve test coverage

* Add reload test: not affecting state

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-20 16:18:58 +01:00
Thomas Dietrich
28af0b4092
Statistics component typing (#60997)
* Implement optional manually defined uniqueid

* Fix test case via mocked environment

* Add typing to statistics component

* Fix minor inconsistency

* Fix linter issues

* Execute hassfest

* Fix stricter mypy warnings

* Fix maxsplit warning

* Make binary value range explicit check

* Add basic typing to statistics tests

* Add empty config testcase

* Minor improvements

* Improve after comments

* Remove unnecessary test case

* Fix changed type

* Remove dict.get default
2021-12-20 14:53:51 +01:00
Erik Montnemery
c96606df68
Don't use the homeassistant media app when casting media (#62385) 2021-12-20 14:28:02 +01:00
Robert Hillis
e689afc0b3
Remove deprecated yaml config from dlna_dmr (#62344) 2021-12-20 13:56:45 +01:00
Robert Hillis
cabcb52fb3
Remove deprecated yaml config from co2signal (#62343) 2021-12-20 13:49:15 +01:00
J. Nick Koston
abc7dcf6bf
Add zones support to flux_led (#61072) 2021-12-20 13:45:34 +01:00
Paulus Schoutsen
a5c39e6fe4
Improve evil genius labs error handling (#62365) 2021-12-20 09:00:49 +01:00
Eric Severance
f50dc10276
Use the Platform enum in wemo (#62153) 2021-12-19 21:11:40 -08:00
Eric Severance
e8096e7f51
Bump pywemo==0.7.0 (#62360) 2021-12-19 21:02:05 -08:00
Allen Porter
6ae7b928ea
Add a camera specific logger to help diagnose stream errors (#61647)
* Add a camera specific logger to help diagnose stream errors

Add a camera specific logger to help users associate stream errors with a particular camera.
Issue #54659

* Apply code review feedback

* Update package name based on manual testing
2021-12-19 19:42:37 -08:00
Eric Severance
1318597370
Fix typing for wemo (#62157) 2021-12-19 18:09:30 -06:00
Robert Hillis
1baba2a807
Remove deprecated yaml config from flux_led (#61844)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-19 15:24:04 -06:00
Allen Porter
368e16f189
Simplify nest test patch using new keyword (#62336) 2021-12-19 11:45:04 -08:00
Robert Hillis
dfc93f6ab8
Remove deprecated yaml config from Efergy (#61520) 2021-12-19 18:44:26 +01:00
Allen Porter
647febd7d8
Mark camera unavailable when keepalive stream fails (#62294)
* Mark camera unavailable when keepalive stream fails

Add a listener in stream that notifies camera when the stream state has changed, and
use that to inform the camera `available` property. Update the property to be set
only from the main loop where it is read to reduce thread safety races.

Issue #54659

* Fix pylint import related errors

* Address lint naming errors

* Apply suggestions from code review

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

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-19 09:09:59 -08:00
Ville Skyttä
1ec8619687
Make core config source an enum (#61966)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-19 18:02:52 +01:00
Robert Hillis
1bd904b5b5
Use enums for rest tests (#62197)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-19 18:01:33 +01:00
Robert Hillis
b869b680fb
Remove deprecated yaml config from aurora abb (#62317) 2021-12-19 18:00:49 +01:00
J. Nick Koston
c3a963e12a
Add switch to enable/disable music mode in Magic Home/flux_led (#62320) 2021-12-19 17:57:33 +01:00
Robert Hillis
5d5b6bef55
Remove deprecated yaml config from opengarage (#61961) 2021-12-19 17:55:27 +01:00
J. Nick Koston
9128693e71
Add reboot button to Magic Home/flux_led (#62323) 2021-12-19 17:48:42 +01:00
J. Nick Koston
d325de7510
Add additional guarding to color_rgb_to_rgbww (#62220) 2021-12-19 09:44:53 -06:00
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