Eric Severance
a1be11a492
Store wemo device sw_version & upnp connections ( #62758 )
2021-12-24 10:31:42 -10:00
uvjustin
9dbba6b7f2
Use lock in Camera.create_stream ( #62757 )
...
Rename create_stream to async_create_stream in Camera
Rename get_image to async_get_image in Stream
Rename get_image to async_get_image in KeyFrameConverter
2021-12-25 04:14:43 +08:00
Lorenzo Brescanzin
0da710c4e0
Fix HomeKit sensor update check ( #62705 )
2021-12-24 08:39:37 -10:00
J. Nick Koston
690b5a994b
Add missing __init__.py to overkiz tests ( #62727 )
2021-12-23 22:55:31 -10:00
Brian Egge
27e3a5ba83
Generic thermostat presets ( #56080 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-23 14:29:29 -10:00
David F. Mulcahey
41531b528e
Add identify buttons to ZHA devices ( #61495 )
...
* Identify buttons
* clean up and add test
* use Platform
* update device list
* Only 1 identify button per device
* cleanup press until the need arises for the branch
* make imports relative
2021-12-23 17:52:42 -05:00
Dave T
fa6d6d914b
Use new enums in zwave tests ( #62711 )
...
* Use new enums in zwave tests
* Code review: == to is and BinarySensor to Sensor
2021-12-23 23:51:33 +01:00
Dave T
759481688b
Use new enums in huisbaasje tests ( #62714 )
2021-12-23 23:44:09 +01:00
Dave T
79ef4dea98
Use new enums in smartthings tests ( #62708 )
...
* Use new enums in smartthings tests
* Convert == to is
2021-12-23 23:14:10 +01:00
Dave T
caa2157b5b
Use new enums in rdw tests ( #62707 )
2021-12-23 23:07:56 +01:00
Joakim Sørensen
13e3ca6ab1
Add config flow to version integration ( #54642 )
2021-12-23 21:04:58 +01:00
jjlawren
00307e1ade
Bump soco to 0.25.2 ( #62691 )
2021-12-23 11:07:29 -08:00
Ed Coen
df6fa43bff
Add connectsense to homekit_controller ( #62675 )
2021-12-23 19:05:36 +00:00
Mick Vleeshouwer
3605c4f32f
Add Overkiz integration (with base + sensor entity) ( #62640 )
2021-12-23 08:34:35 -10:00
Eugenio Panadero
f422dd418b
Fix pvpc_hourly_pricing by changing data source and modernise integration ( #62591 )
2021-12-23 17:08:40 +01:00
Franck Nijhof
40f1d53475
Add sensor tests to Luftdaten ( #62663 )
2021-12-23 15:46:17 +01:00
Christian Manivong
772428e70f
Round Hue transition to steps of 100ms ( #62619 )
...
* Adding round() to transition before firing turn_on, turn_off #62608
2021-12-23 15:08:24 +01:00
Marcel van der Veldt
eb37668036
Fix Hue button events ( #62669 )
2021-12-23 14:24:37 +01:00
Tom Brien
fa7739937d
Provide clearer feedback in Coinbase when authentication fails ( #62627 )
2021-12-23 10:52:22 +01:00
Erik Montnemery
8e8e49d3e7
Add sensor device classes for apparent and reactive power ( #62010 )
2021-12-23 10:29:38 +01:00
Erik Montnemery
cb2c2d98c3
Remove unnecessary checks before calling os.makedirs ( #62576 )
2021-12-23 09:59:31 +01:00
Eduard van Valkenburg
259e454c3e
Azure Event Hub code improvements ( #62584 )
...
* code improvements to AEH
* moved hub back
2021-12-23 07:52:44 +01:00
Franck Nijhof
dc47cbd01b
Add input_button support to Google Assistant ( #62593 )
2021-12-23 07:38:35 +01:00
Franck Nijhof
99b2161365
Add input_button support to Alexa ( #62592 )
2021-12-23 07:36:45 +01:00
Allen Porter
23277181ca
Increase test coverage for google calendar ( #62648 )
...
* Increase test coverage for google calendar
Update tests to exercise the API responses, getting test coverage
to 97% for calendar.py
----------- coverage: platform linux, python 3.9.6-final-0 -----------
Name Stmts Miss Cover Missing
---------------------------------------------------------------------------
homeassistant/components/google/__init__.py 193 84 56% 92, 163-228, 238, 244-247, 254-262, 274, 298-299, 305-347, 387-392, 416-430, 435-437
homeassistant/components/google/calendar.py 122 4 97% 41, 45, 51, 135
---------------------------------------------------------------------------
TOTAL 315 88 72%
* Revert conftest changes
* Update typing errors found on CI
* Update python3.8 typing imports
* Remove commented out code
2021-12-23 07:31:56 +01:00
Franck Nijhof
6ef7539a31
Add base integration tests to Luftdaten ( #62594 )
2021-12-23 07:25:26 +01:00
J. Nick Koston
ef5e5c3f96
Dismiss existing discoveries when a HomeKit device is paired ( #62632 )
2021-12-22 19:40:36 -10:00
Franck Nijhof
c5d62ccc7e
Add input_button support to HomeKit ( #62590 )
2021-12-22 13:23:57 -10:00
G Johansson
566f631933
Implement config_Flow for Sensibo ( #60900 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-22 10:32:50 -10:00
Jc2k
06eec7adfc
Allow adding new devices to an Aqara hub via homekit_controller ( #62600 )
2021-12-22 08:49:58 -10:00
uvjustin
6e13605cad
Add get_image method to Stream ( #61918 )
...
* Add get_image method to Stream
* Add KeyFrameConverter class
2021-12-23 00:24:53 +08:00
Erik Montnemery
eda9291ca1
Improve google cast state reporting ( #62587 )
2021-12-22 14:54:36 +01:00
Dave T
38e95ca663
Use new enums for prometheus tests ( #62550 )
2021-12-22 14:31:20 +01:00
Dave T
d7de3fbfce
Use new enums in picnic tests ( #62549 )
2021-12-22 14:29:55 +01:00
Dave T
eb10ff47df
Use new enums in p1_monitor tests ( #62548 )
2021-12-22 14:28:22 +01:00
Erik Montnemery
2f8e65a9b0
Store deleted duplicated statistics in .storage ( #62574 )
2021-12-22 14:27:56 +01:00
Robert Hillis
75e8a2ec77
Use platform enums in plex tests ( #62561 )
2021-12-22 07:59:54 -05:00
Robert Hillis
432d48a4d7
Use platform enums in vizio tests ( #62555 )
2021-12-22 07:33:13 -05:00
Robert Hillis
d9788c2447
Use platform enums in rest tests ( #62564 )
2021-12-22 07:31:55 -05:00
Franck Nijhof
496165711d
Improve config flow Luftdaten ( #62589 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-22 13:00:51 +01:00
Franck Nijhof
60b2cdd069
Allow binary sensor state to be None ( #60193 )
2021-12-22 12:24:29 +01:00
Erik Montnemery
3323263c94
Flip behavior for grouped locks ( #62580 )
2021-12-22 12:14:45 +01:00
Robert Hillis
ee878513a7
Remove deprecated yaml config from squeezebox ( #62537 )
2021-12-22 12:03:31 +01:00
Robert Hillis
5e25df91b2
Use platform enums in utility_meter tests ( #62553 )
2021-12-22 10:43:33 +01:00
Dave T
563e6b3e80
Use new enums in modern_forms tests ( #62519 )
2021-12-22 10:04:12 +01:00
Dave T
e64352a7e0
Use new enums in modbus tests ( #62518 )
2021-12-22 10:03:11 +01:00
Dave T
f2ae7c0b92
Use new enums in mfi tests ( #62516 )
...
* Use new enums in mfi tests
* Code review: swap == for is
2021-12-22 10:01:00 +01:00
Dave T
a7ef983a31
Use new enums in litterrobot tests ( #62515 )
...
* Use new enums in litterrobot tests
* Code review: swap == for is
2021-12-22 10:00:24 +01:00
Jc2k
d3d6965ba0
Support setting Aqara Hub Volume via homekit_controller ( #62538 )
2021-12-22 08:43:17 +00:00
Dave T
c7b910ca33
Use new enums in knx tests ( #62513 )
...
* Use new enums in knx tests
* Code review: Swap == for is
2021-12-22 09:31:23 +01:00
schmyd
f135d77a27
Fix deconz light service parameter handling ( #62128 )
...
* Only check presence of values, not their content
* Add tests
* Revert "Only check presence of values, not their content"
This reverts commit 046f0ed5fd
.
* Validate existence of keys, not their values
* Properly handle cases of missing keys
2021-12-22 09:29:54 +01:00
Dave T
3663e0af41
Use enums for ozw tests ( #62547 )
2021-12-22 09:16:37 +01:00
Robert Hillis
ce9abdb520
Use platform enums in ring tests ( #62565 )
2021-12-21 21:01:01 -08:00
Robert Hillis
0c82a3c7b0
Use platform enums in withings tests ( #62551 )
2021-12-21 20:37:17 -08:00
Robert Hillis
1279592a98
Remove deprecated yaml config from vlc_telnet ( #62542 )
2021-12-21 23:37:46 +01:00
Robert Hillis
550fe18603
Use enums in tasmota tests ( #62150 )
...
* Use enums in tasmota tests
* platform enums
2021-12-21 23:01:07 +01:00
Dave T
d82e8b6cc0
Use new enums in mobile_app tests ( #62517 )
2021-12-21 22:30:18 +01:00
Dave T
043a4b06d0
Use new enums in mqtt tests ( #62520 )
2021-12-21 22:04:32 +01:00
Dave T
03054bc430
Use new enums in mysensors tests ( #62521 )
2021-12-21 21:57:55 +01:00
Dave T
e0c5cbf1e0
Use new enums in nam tests ( #62522 )
2021-12-21 21:54:58 +01:00
Dave T
8166f37830
Use new enums in nzbget tests ( #62524 )
2021-12-21 21:51:10 +01:00
Dave T
33bddf275c
Use SensorStateClass Enums in fritzbox tests ( #62134 )
2021-12-21 19:17:23 +01:00
Ville Skyttä
9b437ef146
Remaining DeviceAutomationType bits ( #62508 )
...
* Use DeviceAutomationType in missed tests/components/*
* Tighten device automation type hints
2021-12-21 20:05:48 +02:00
Dave T
498720f3c9
Use DeviceClass Enums in integration tests ( #62511 )
2021-12-21 19:03:39 +01:00
Dave T
1f62371f45
Use DeviceClass Enums in iotawatt tests ( #62512 )
2021-12-21 19:02:15 +01:00
Franck Nijhof
07e034c1c6
Add iif (immediate if) template function/filter ( #61428 )
2021-12-21 17:25:07 +01:00
Erik Montnemery
6151bbe5c8
Improve debug log when warning about a dip in total_increasing sensor ( #62501 )
2021-12-21 17:22:40 +01:00
Erik Montnemery
48b3d6e1c0
Save original + duplicate pairs when deleting duplicated statistics ( #62498 )
2021-12-21 15:24:36 +01:00
Erik Montnemery
cab2a74b5f
Don't pollute config dir with deleted duplicated statistics ( #62489 )
2021-12-21 14:27:35 +01:00
Erik Montnemery
cbcd6d458e
Assert current state of script condition validation in tests ( #62486 )
2021-12-21 14:10:05 +01:00
Erik Montnemery
684c380ce2
Use SensorDeviceClass enum in sensor device automations ( #62480 )
2021-12-21 14:07:01 +01:00
Franck Nijhof
e62148b8ff
Remove deprecated YAML configuration from Stookalert ( #61007 )
2021-12-21 12:53:19 +01:00
Erik Montnemery
e2fca2e305
Support shorthand templates in condition actions ( #61177 )
...
* Support shorthand templates in condition actions
* Fix validation message
* Fix tests
2021-12-21 12:19:31 +01:00
J. Nick Koston
4b30c9631f
Add set_music_mode service to flux_led for detailed music mode control ( #62429 )
2021-12-21 12:09:41 +01:00
Ville Skyttä
ea58432721
Use DeviceAutomationType in tests/components/[s-z]* ( #62450 )
2021-12-21 11:56:00 +01:00
Brynley McDonald
26dc526234
Add slugify as a template filter ( #58724 )
2021-12-21 11:35:54 +01:00
J. Nick Koston
e0ef066022
Remove legacy migration and yaml from tplink ( #62457 )
...
- tplink has been fully migrated to a config flow in previous
versions.
2021-12-21 11:24:32 +01:00
Robert Hillis
a9c45fdcc0
Remove deprecated yaml config from philips_js ( #62471 )
2021-12-21 11:11:25 +01:00
Robert Hillis
101341f186
Remove deprecated yaml config from google travel time ( #62468 )
2021-12-21 11:00:11 +01:00
Robert Hillis
d1980e7351
Remove deprecated yaml config from honeywell ( #62469 )
2021-12-21 10:53:07 +01:00
Franck Nijhof
7cdfc7558e
Cleanup stale setup/import from Nuki ( #62476 )
...
* Cleanup stale setup/import from Nuki
* Adjust tests
2021-12-21 10:31:41 +01:00
Robert Hillis
d73081f875
Remove deprecated yaml config from nuki ( #62470 )
2021-12-21 10:01:43 +01:00
J. Nick Koston
a7cae02725
Add support for changing Magic Home socket power restore state ( #62301 )
2021-12-20 20:35:50 -06:00
Ville Skyttä
f913961d63
Use DeviceAutomationType in tests/components/[m-r]* ( #62443 )
2021-12-20 22:29:22 +01:00
Ville Skyttä
5926961ed5
Use DeviceAutomationType in tests/components/[a-f]* ( #62440 )
2021-12-20 22:26:29 +01:00
Ville Skyttä
c5e6489475
Use DeviceAutomationType in tests/components/[h-l]* ( #62441 )
2021-12-20 22:18:53 +01:00
Aaron Bach
b051704c4b
Add reauth flow to Tile ( #62415 )
2021-12-20 13:11:26 -07:00
Erik Montnemery
a7a0cfd9e6
Make it possible to turn on audio only google cast devices ( #62420 )
2021-12-20 11:18:11 -08:00
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
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
Dave T
cabd6375d1
Use DeviceClass Enums in canary tests ( #62113 )
2021-12-16 21:47:59 +01:00
Dave T
373790cb15
Use DeviceClass Enums in deconz tests ( #62114 )
2021-12-16 21:46:01 +01:00
Erik Montnemery
4353b1e62c
Improve tests for template binary sensor ( #62103 )
2021-12-16 21:31:37 +01:00
Dave T
0409665907
Use DeviceClass Enums in ambee tests ( #62108 )
2021-12-16 21:22:26 +01:00
Dave T
84dad5d678
Use DeviceClass Enums in brother tests ( #62110 )
2021-12-16 21:22:04 +01:00
Franck Nijhof
0dbd948867
Add Open-Meteo integration (second attempt) ( #61742 )
2021-12-16 21:12:33 +01:00
Dave T
fe08668a87
Use DeviceClass Enums in accuweather tests ( #61990 )
2021-12-16 21:05:56 +01:00
Dave T
4a7a3b0469
Use DeviceClass Enums in advantage_air tests ( #61986 )
2021-12-16 21:05:12 +01:00
Dave T
1a594d2a8c
Use DeviceClass Enums in abode tests ( #61980 )
2021-12-16 20:59:55 +01:00
Dave T
4f7182a41a
Use DeviceClass Enums in airly tests ( #61989 )
2021-12-16 20:59:25 +01:00
Eduard van Valkenburg
80833aa7fb
Add config flow to Azure Event Hub integration ( #61155 )
...
* config flow added, no tests yet
* added tests
* refinement of tests
* small reverses of hub code
* fix small bug
* test fixes from review
* test fixes from review
* further refinement of tests and config flow
* removed true return from hub and added failed reason for import
* added deepcopy to default options
* deleted max_delay from options, can still be in yaml for now
* updated dropped message
* mistaken period at eol
2021-12-16 18:57:51 +01:00
epenet
7f823f7211
Fix OwnetError preventing onewire initialisation ( #61696 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 14:06:38 +01:00
epenet
550004f109
Fix mfi tests ( #61904 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-16 13:59:58 +01:00
J. Nick Koston
94ae6ac2b2
Handle color temp to RGBWW conversion ( #61473 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-16 05:39:33 -06:00
J. Nick Koston
11fde22d45
Add hardware version support to homekit controller ( #61743 )
2021-12-16 05:24:18 -06:00
J. Nick Koston
04153c0075
Add hardware version to the device registry ( #61650 )
2021-12-16 05:16:19 -06:00
J. Nick Koston
048102e053
Prevent apple_tv rediscovery from secondary identifiers ( #61973 )
2021-12-16 02:25:18 -06:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler ( #60436 )
2021-12-15 23:25:40 +02:00
javicalle
75e7104339
A few RFLink tests ( #58544 )
...
* Full coverage for RFLink tests
* use global constants
* extend RFLink keepalive tests
2021-12-15 23:09:54 +02:00
Ville Skyttä
7db3246de4
Make config entry disabled_by an enum ( #60445 )
...
* Make config entry disabled_by an enum
* Update homeassistant/config_entries.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-15 20:53:21 +01:00
Robert Hillis
cc3a4fef53
Remove deprecated yaml config from enphase envoy ( #61840 )
2021-12-15 13:55:31 +01:00
Marvin Wichmann
cefbc2c428
Allow setting local_ip for knx routing connections ( #61836 )
2021-12-15 13:15:56 +01:00
Allen Porter
bff677e34e
Bump google-nest-sdm to 0.4.8 ( #61851 )
2021-12-15 13:12:38 +01:00
Jan Bouwhuis
d5defa8995
Support publishing MQTT messages with raw bytes payloads ( #61090 )
...
* correctly publish mqtt ouput
* Additional tests
* Add template test with binary output
* render_outgoing_payload with command templates
* use MqttCommandTemplate helper class
* add tests command_template
* Additional tests
* support pass-through for MqttComandTemplate
* fix bugs
* unify workform always initiate with hass
* clean up
* remove not needed lines
* comment not adding value
2021-12-15 11:28:43 +01:00
Erik Montnemery
f17164fa47
Don't override pychromecast MediaController's APP ID ( #61796 )
2021-12-15 10:40:37 +01:00
Marcel van der Veldt
01c8e5f49d
Fix turn_off with transition for grouped Hue lights ( #61728 )
...
* fix turn_off with transition for grouped hue lights
* add test
2021-12-14 11:24:37 -08:00
Erik Montnemery
cf09d1b604
Improve warnings when a zone trigger is referencing a none-existing zone ( #61763 )
2021-12-14 20:14:50 +01:00
Pascal Vizeli
c02aae58fb
Add twinkly DHCP support ( #61434 )
...
* Add twinkly DHCP support
* fix typing import
* fix format
* Fix imports v2
* Using IP
* Fix tests
* Apply suggestions from code review
Thanks @bdraco
Co-authored-by: J. Nick Koston <nick@koston.org>
* fix black
* Add confirm step
* Add more tests
* Update homeassistant/components/twinkly/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-14 15:12:19 +01:00
Robert Hillis
dfcadd600c
Remove deprecated yaml from foscam ( #61761 )
2021-12-14 13:11:07 +01:00
epenet
eddc1ae0ed
Use new enums in huisbaasje ( #61776 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-14 10:54:47 +01:00
Franck Nijhof
de45144750
Remove deprecated YAML configuration from Luftdaten ( #61748 )
2021-12-14 09:21:12 +01:00
RDFurman
1ed6abe23d
Honeywell unique id fix ( #59393 )
...
* Move error logging and remove reload
* Change device assignment and improve logging
* Use dictionary for devices
* Check if new device exists in API response
* Add test and make loop better
* Make test assert on error in log
2021-12-13 20:38:43 -08:00
Marcel van der Veldt
438d19f72b
Fix Flash effect for Hue lights ( #61733 )
2021-12-13 16:27:58 -08:00
Klaas Schoute
dea20cf816
Upgrades Garages Amsterdam to v3.0.0 ( #61734 )
2021-12-14 00:31:22 +01:00
Robert Hillis
82e280d2ac
Remove deprecated yaml config from flume ( #61517 )
2021-12-13 23:04:50 +01:00
J. Nick Koston
65ec251309
Fix updating apple_tv addresses ( #61724 )
2021-12-13 21:38:22 +01:00
Allen Porter
efbec55818
Suppress errors for legacy nest api when using media source ( #61629 )
2021-12-13 17:41:45 +01:00
Martin Hjelmare
0662ab019f
Improve balboa tests ( #61691 )
2021-12-13 17:11:21 +01:00
Erik Montnemery
c157f1a787
Add color mode support to zwave light ( #55264 )
...
* Add color mode support to zwave light
* Fix typo
2021-12-13 14:38:49 +01:00
Erik Montnemery
bceeaec2f8
Remove duplicated statistics rows ( #61146 )
...
* Remove duplicated statistics
* Fix misleading docstring
* Pylint knows best
* Correct test
* Oops
* Prevent insertion of duplicated statistics
* Tweak
* pylint
* Add models_schema_23.py
* Tweak
2021-12-13 14:15:36 +01:00
Allen Porter
cd001d0243
Only publish nest camera event messages once per thread and bump nest version ( #61587 )
2021-12-12 14:12:05 -08:00
Marcel van der Veldt
4ad90b33c9
Fix Hue transition calculation ( #61581 )
2021-12-12 14:11:41 -08:00
J. Nick Koston
8200101785
Fix HomeKit covers with device class window and no tilt ( #61566 )
2021-12-12 14:10:40 -08:00
Allen Porter
c3e72bec0a
Update logic for nest media source `can_play` for events ( #61537 )
2021-12-12 14:10:20 -08:00
Marc Mueller
cbe58913ea
Fix freedompro tests ( #61012 )
2021-12-12 14:09:45 -08:00
David F. Mulcahey
94324cebea
Update HVAC action handling in ZHA climate devices ( #61460 )
...
* Update HVAC action handling in ZHA climate devices
* fix class name
* align with class name changes
* get the correct sensor entity for state assertions
2021-12-12 12:11:37 -05:00
Alexei Chetroi
997809c6c4
Refactor ZHA entity matching process ( #60063 )
...
* Group multi-matches by channels
* Group multi-matched by explicit groups
* Registryless AnalogInput and PowerConfiguration
* Refactor single cluster sensor registry
* Refactor single cluster cover and lock registry
* Refactor single cluster binary_sensor registry
* Pylint
2021-12-12 07:52:49 -05:00
J. Nick Koston
388fcac689
Reduce cpu requirements for apple_tv mdns and discovery ( #61346 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-12-11 19:57:11 -10:00
Austin Mroczek
3198211a7f
Add instant arming for totalconnect ( #60156 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-11 15:58:12 -10:00
David F. Mulcahey
abbde8f128
Clean up state class and device class usage in ZHA ( #61049 )
...
* Clean up sensor and device class usage in ZHA
* additional cleanup
* Use EntityCategory
2021-12-11 11:51:24 -05:00
Marcel van der Veldt
0abfc90870
Fix typo in Hue device triggers - use enum value ( #61498 )
2021-12-11 17:12:33 +01:00
David F. Mulcahey
a17031630f
Use Platform enum in ZHA ( #61016 )
2021-12-11 11:06:39 -05:00
J. Nick Koston
3eabd69666
Fix exception in color_rgb_to_rgbww ( #61466 )
2021-12-10 22:19:54 -08:00
Andre Lengwenus
74d5cbd3a9
Add events and device triggers to LCN ( #58745 )
2021-12-10 19:02:17 -10:00
Marcel van der Veldt
0d36b07d10
Small fix for device triggers and events on Hue integration ( #61462 )
2021-12-10 15:11:34 -08:00
jjlawren
6d54261322
Remove external library discovery call in Sonos ( #61461 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-10 11:28:47 -10:00
Erik Montnemery
dc5888ab4a
Correct recorder.statistics.get_last_statistics ( #61421 )
2021-12-10 10:09:29 -08:00
Erik Montnemery
aa36dde148
Correct rest sensor configured to generate timestamps ( #61429 )
2021-12-10 09:59:27 -08:00
Erik Montnemery
281b5e1c22
Speed up demo lock tests ( #61425 )
2021-12-10 11:13:44 +01:00
J. Nick Koston
8d483e2206
Fix flux_led discovery with older models ( #61413 )
2021-12-10 08:29:27 +01:00
Erik Montnemery
27d1063dec
Revert "Skip duplicated data when calculating fossil energy consumption ( #60599 )" ( #61323 )
...
This reverts commit 159506262a
.
2021-12-10 08:19:53 +01:00
Matthias Alphart
4f9d4872a7
Fix unique_id of S0 meters connected to Fronius inverters ( #61408 )
2021-12-09 15:35:20 -08:00
Aaron Bach
b556bd1d58
Consolidate SimpliSafe config flow forms into one ( #61402 )
2021-12-09 14:11:41 -08: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
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
Stefan Agner
a13ae85982
Introduce only_supervisor for @websocket_api.ws_require_user() ( #61298 )
2021-12-08 16:49:35 -08: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
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
jjlawren
9f3a4c3617
Improve Sonos tests, begin adding coverage ( #61198 )
...
* Update entity registry handling
* Add and use fixtures to test setup via config entry
* Remove legacy redundant tests
* Remove unnecessary mock_coro
* Remove unnecessary namespace change
* Move zeroconf payload to fixture
* Begin adding Sonos to codecov
* Mock proper return value
* Revert return value for platform
2021-12-08 19:28:27 +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
Thomas Dietrich
bbe6d3c9ae
Statistics refactor testcases in async pytest style ( #60935 )
...
* Implement optional manually defined uniqueid
* Fix test case via mocked environment
* Refactor testcases
* Fix missing awaits
* Revert order changes, reduce use of block command
* Tidy up mocked time testcases
2021-12-08 16:53:18 +01:00
Erik Montnemery
5169ee69c7
Attempt to fix flaky prometheus test ( #61242 )
2021-12-08 16:08:02 +01:00
epenet
9f15e7dcf4
Fix flaky tests around frame helper ( #61179 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:50:56 +01:00
Paulus Schoutsen
b7539fc0de
Fix islamic prayer times timestamp sensor ( #61207 )
2021-12-07 23:39:27 -08:00
Daniel Hjelseth Høyer
8cee47072d
Add local access for Adax ( #60019 )
2021-12-07 16:48:16 -10:00
J. Nick Koston
6b70bd7495
Fix uncaught exception in bond config flow ( #61184 )
2021-12-07 17:20:38 -08: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
einarhauks
dced4d4542
Display energy in wh instead of kWh ( #61169 )
2021-12-07 11:33:24 -08:00
Allen Porter
200a5c7e05
Fix flaky tests with unsynchronized stream `available` assertions ( #61167 )
...
Remove assertions that are not guaratuneed to be safe depending
on the state of the background worker. This leaves in the state
check for the keepalive case which does have some synchronization
already.
2021-12-07 07:40:36 -08: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