Robert Svensson
a57d340037
Use websocket fixture in deCONZ cover tests ( #47822 )
...
Localize test data
Improve asserts
2021-03-18 10:07:11 +01:00
Robert Svensson
2ab640aaef
Use websocket fixture in deCONZ climate tests ( #47821 )
...
Localize test data
Improve asserts
2021-03-18 09:57:27 +01:00
Robert Svensson
333f5da036
Use websocket fixture in deCONZ binary sensor tests ( #47820 )
...
Localize test data
Improve asserts
2021-03-18 09:51:42 +01:00
J. Nick Koston
08db262972
Add a service to reload config entries that can easily be called though automations ( #46762 )
2021-03-17 21:27:21 -07:00
corneyl
6fb0e49335
Upgraded aiopylgtv to v0.4.0 ( #47014 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-03-17 20:59:48 -07:00
Tobias Haber
f785cc7d9a
Google has deprecated a comma separated list for modes changed it to array ( #48029 )
2021-03-17 20:59:06 -07:00
J. Nick Koston
dd56cc8010
Fix rest sensor data misalignment with multiple sensors ( #48043 )
...
If there were multiple rest data sources, the index needed
to be incremented by type instead of by data source/type
2021-03-17 22:47:42 +01:00
Matthew Donoughe
9011a54e7f
Switch history tests to pytest ( #42318 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-17 15:32:44 +01:00
sycx2
009e44ed9b
Rewrite tests for Template Light ( #41163 )
2021-03-17 11:30:44 +01:00
Kevin Worrel
d21d9951ba
Add Pentair ScreenLogic integration ( #47933 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-03-16 13:32:02 -10:00
J. Nick Koston
f605a3c149
Remove YAML support from August ( #47615 )
2021-03-16 13:22:07 -10:00
Abílio Costa
d49a436573
Delay ZHA group updates to ensure all members are updated first ( #46861 )
...
* Delay ZHA group updates to ensure all members are updated first
After turning off a group, when the first device reports "off", the
other devices may still be "on". If HA processes the group state update
quickly enough, the group will see that some devices are on, so the
state of the group will revert back to "on", and then "off" when the
remaining devices all report "off". That would cause the UI toggle to go
back and forward quickly, and automations that trigger with "state: on"
to fire when the user turns the group off.
This PR fixes that by delaying the group state update, giving time for
all the devices to report their states first.
* Fix zha group tests
* Reorder sleeping.
* Update tests/components/zha/common.py
Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
2021-03-16 17:38:16 -04:00
Paulus Schoutsen
f1c274b3dd
Add run_id to automation logbook event ( #47980 )
2021-03-16 14:37:26 -07:00
Alan Tse
f86e7535e0
Add location details to deprecation warning ( #47155 )
2021-03-16 21:16:07 +01:00
Matt Zimmerman
73c6728e98
Add binary_sensor entities for SmartTub reminders ( #47583 )
2021-03-16 17:38:09 +01:00
Klaas Schoute
0097169dd3
Add aliases to actions in automation blueprints ( #47940 )
2021-03-16 17:14:07 +01:00
Erik Montnemery
389891d13d
Improve JSONEncoder test coverage ( #47935 )
2021-03-16 17:12:51 +01:00
David F. Mulcahey
673ebe2911
Guard extra call in ZHA lights ( #47832 )
...
* add flag to prevent sending an on command
* fix condition
* add constant for default transition
* make groups work with new force on flag
* reorder light entity creation
* rearrange logic
* update test
* remove failed attempt at group light flag
* fix flag
2021-03-16 10:02:26 -04:00
Erik Montnemery
9647eeb2e0
Add custom JSONEncoder for automation traces ( #47942 )
...
* Add custom JSONEncoder for automation traces
* Add tests
* Update default case to include type
* Tweak
* Refactor
* Tweak
* Lint
* Update websocket_api.py
2021-03-16 14:21:05 +01:00
Erik Montnemery
5f2326fb57
Add support for light color modes ( #47720 )
...
* Add support for light color modes
* Update tests
* Update comments
* Fix bugs, add tests
* Suppress lint errors
* Don't suppress brightness when state is ambiguous
* Improve reproduce_state + add tests
* Add comment
* Change COLOR_MODE_* constants, rename COLOR_MODE_DIMMER to COLOR_MODE_BRIGHTNESS
* Fix tests
* Tweaks
2021-03-16 12:51:39 +01:00
Erik Montnemery
333e6a215a
Add execute_script WS API ( #47964 )
...
* Add execute_script WS API
* Improve tests
2021-03-16 08:51:00 +01:00
Erik Montnemery
1cde1074c9
Correct trace for choose and repeat script actions ( #47973 )
...
* Correct trace for choose and repeat script actions
* only choose-wrap the choices
* Update tests
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-16 08:49:16 +01:00
Franck Nijhof
354c0a7fd1
Add reauthentication to Verisure ( #47972 )
...
* Add reauthentication to Verisure
* Update translations
* Correct translation step key
* Address pylint warning
* = is not :
2021-03-16 08:41:41 +01:00
Erik Montnemery
f82e59c32a
Make it possible to list debug traces for a specific automation ( #47744 )
2021-03-15 16:51:04 -07:00
Martin Hjelmare
40c12997ed
Add zwave_js sensor humidity device class ( #47953 )
2021-03-15 20:51:24 +01:00
Franck Nijhof
059e9e8307
Add config flow to Verisure ( #47880 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-15 12:30:44 -07:00
RadekHvizdos
9f4c2f6260
Add suggested_area to MQTT discovery ( #47903 )
...
* Add suggested_area to MQTT Discovery
This adds suggested_area to MQTT discovery, so that the discovered devices could be automatically added to the proper area.
* Add abbreviation for MQTT suggested_area
* Remove extra whitespace
* Remove extra whitespace #2
* Added tests for MQTT Dicovery of suggested_area
* Fix test for MQTT suggested_area
* Better tests of MQTT suggested_area
Changes made as per feedback from @emontnemery
2021-03-15 20:02:02 +01:00
J. Nick Koston
28c80c1133
Ensure recorder purge tests can handle multiple purge cycle ( #47956 )
...
Since a purge can generate another purge task, we now wait for
three recorder queue completions by default.
2021-03-15 11:19:19 -07:00
Nathan Tilley
93c38551d3
Implement Wake On Lan Dummy State ( #47719 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-15 17:20:47 +01:00
Andre Lengwenus
50b7b1cc7a
Migrate LCN configuration to ConfigEntry (Part 1) ( #44090 )
2021-03-15 13:45:13 +01:00
Tobias Sauerwein
6b98583bc1
Add tests for Netatmo climate ( #46392 )
...
* Add tests for Netatmo climate
* Add comments and fake webhook events
* Split tests
* Split tests
* Clean up
* Fix coveragerc
* Fix requirements
* Remove freezegun dependency
* Move async_block_till_done to
* Call async_handle_webhook directly
* Use async_handle_webhook directly p2
* Exclude helper.py from
* Remove assertion of implementation details
* Use the webhook integration handler
* Extract function
2021-03-15 12:45:36 +01:00
Khole
cfeb8eb06a
Add Hive config flow ( #47300 )
...
* Add Hive UI
* Fix tests and review updates
* Slimmed down config_flow
* Fix tests
* Updated Services.yaml with extra ui attributes
* cleanup config flow
* Update config entry
* Remove ATTR_AVAILABLE
* Fix Re-Auth Test
* Added more tests.
* Update tests
2021-03-15 12:27:10 +01:00
Drzony
99d1e3e71d
MQTT Light: Use flash attribute in async_turn_off ( #47919 )
2021-03-15 11:24:07 +01:00
Paulus Schoutsen
7fe3c472e9
Improve bad JSON data reporting ( #47932 )
...
* Improve bad data reporting
* Fix tests
Co-authored-by: Erik <erik@montnemery.com>
2021-03-15 10:41:25 +01:00
Brandon Rothweiler
fbf3225234
Address review comments and minor fix for Mazda integration ( #47702 )
...
* Address comments from code review
* Fix handling of missing sensor values
* Use default timeout for get_vehicles
* Fix test_update_auth_failure
2021-03-15 06:57:39 +01:00
Allen Porter
bcadccf7aa
Invalidate HLS Stream on nest url refresh failure ( #47869 )
...
This will ensure that the HLS stream is re-created and fetches a new url.
2021-03-14 22:49:21 -07:00
J. Nick Koston
15aa00d6cc
Fix homekit checking for port cleanup too many times ( #47836 )
...
* Fix homekit checking for port cleanup too many times
The loop should have terminated as soon as the port was available
* coverage
* tweak homekit shutdown wait
2021-03-15 05:14:46 +01:00
J. Nick Koston
61a2460c87
Improve error reporting in recorder purge test ( #47929 )
2021-03-14 19:46:21 -07:00
Martin Hjelmare
c53a462b3d
Fix zwave_js preset mode lookup ( #47851 )
2021-03-13 22:27:05 +01:00
Raman Gupta
c7b9a0715d
Fix zwave_js preset supported feature ( #47819 )
2021-03-13 12:43:03 +01:00
Allen Porter
02a82d3f00
Add timeouts in stream tests to prevent possible hangs ( #47545 )
...
* Add timeouts on recving packets
Add a timeout when recving packets from the worker thread in case it hangs.
Add an exit condition just in case the while loop goes on forever.
* Add a timeout to recorder thread join.
* Wait for recorder thread to be invoked in tests
Remove the while loop and instead wait for segments to be produced by the background worker thread.
* Allow worker to resume before stopping to fix timeouts
* Lower test timeout further
* Remove test_stream_ended since it is flaky
This test doesn't really add additional value on top of other tests.
2021-03-13 01:53:26 -08:00
Erik Montnemery
2178e27fb4
Fix unclean shutdown of recorder test ( #47791 )
2021-03-12 14:17:27 -08:00
Robert Svensson
786cbcc1d6
Introduction of deCONZ websocket fixture ( #47812 )
2021-03-12 12:03:29 -08:00
Robert Svensson
6b03c8d126
Improve deCONZ init tests ( #47825 )
...
Use patch.dict rather than deep copy to change DECONZ_WEB_REQUEST
2021-03-12 12:02:15 -08:00
Robert Svensson
597bf67f5a
UniFi has changed to not report uptime in epoch form ( #47492 )
2021-03-12 11:55:11 -08:00
Mick Vleeshouwer
9a98dcf432
Add HomeKit support for new CO / CO2 device class ( #47737 )
2021-03-12 09:03:47 -10:00
Charles Garwood
13cd2f52d8
Return property_key in zwave_js get_config_parameters websocket ( #47808 )
2021-03-12 13:49:59 -05:00
Erik Montnemery
3115bf9aab
Add temperature sensor for gogogate2 wireless door sensor ( #47754 )
...
* Add temperature sensor for gogogate2 wireless door sensor
* Chain sensor generators
2021-03-12 19:04:56 +01:00
Paulus Schoutsen
04b335afe9
Allow filtering the logbook by context_id ( #47783 )
2021-03-12 09:04:02 -08:00
Paulus Schoutsen
ff94e920e4
Do not use AsyncTrackStates ( #47255 )
2021-03-11 23:18:09 -08:00