Commit Graph

8056 Commits (f67c0ce8bb006e29f955b82c20a414e0dbe3f35b)

Author SHA1 Message Date
jan iversen f67c0ce8bb
Secure 100% test coverage for modbus, binary_sensor and sensor ()
* Secure 100% test coverage for modbus/binary_sensor.

* Test that class constructor is called.
2021-04-22 11:54:40 +02:00
bsmappee 8b08134850
Support local Smappee Genius device ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-21 22:12:13 -10:00
Matt Zimmerman 8c52dfa1c5
Implement reauth for smarttub ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-21 21:28:24 -10:00
J. Nick Koston c10836fcee
Upgrade to sqlalchemy 1.4.11 () 2021-04-21 20:29:36 -10:00
corneyl 303ab36c54
Add Picnic integration ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: @tkdrob <tkdrob4390@yahoo.com>
2021-04-21 22:21:56 -07:00
J. Nick Koston cb4558c088
Autodetect zeroconf interface selection when not set () 2021-04-21 22:10:34 -07:00
MarBra 9003dbfdf3
Add denonavr DynamicEQ and Audyssey service ()
* denonavr: Add DynamicEQ and Audyssey service

* Remove debug print

* Syntax sugar

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/denonavr/services.yaml

Co-authored-by: J. Nick Koston <nick@koston.org>

* Remove trailing whitespaces

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-21 15:55:30 -10:00
jan iversen 6a4f414236
Change HomeAssistantType to HomeAssistant () 2021-04-21 15:53:06 -10:00
Raman Gupta 99c5087c1e
Add WS API command to capture zwave_js logs from server ()
* Add WS API commands to capture zwave_js logs from server

* register commands

* create a task

* Update homeassistant/components/zwave_js/api.py

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

* Update homeassistant/components/zwave_js/api.py

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

* fix

* fixes and add test

* fix PR on rebase

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-04-21 07:37:35 -04:00
Charles Garwood cad281b326
Add subscription for Z-Wave JS node re-interview status ()
* Add subscription for interview status

* update test

* forward stage completed event

* add additional test

* additional tests

* return earlier
2021-04-21 07:35:16 -04:00
Raman Gupta 6e22251e1d
Add support to enable/disable zwave_js data collection () 2021-04-20 21:40:54 -04:00
Raman Gupta cf16e651cf
Bump zwave_js dependency to 0.24.0 ()
* Bump zwave_js dependency to 0.24.0

* fix bug in schema

* fix test
2021-04-20 23:44:26 +02:00
Robert Svensson 63616a9e36
Use config_entry.on_unload rather than local listener implementation in UniFi () 2021-04-20 08:50:42 -10:00
jan iversen d24b3e0a3c
Test pymodbus () 2021-04-20 11:25:37 -07:00
J. Nick Koston df66f2a9da
Cleanup history states tests that were converted to async tests () 2021-04-20 08:21:41 -10:00
Paulus Schoutsen 7e7267f822
Send only a single event per incoming Google command () 2021-04-20 09:21:52 -07:00
Martin Hjelmare 410f0e3604
Fix mysensors mqtt integration setup guard () 2021-04-20 09:21:38 -07:00
Robert Svensson 34245c3add
Add alarm control panel support to deCONZ integration ()
* Infrastructure in place

* Base implementation

* Add alarm event

* Add custom services to alarm control panel

* Add service descriptions

* Increase test coverage

* Simplified to one entity service with an options selector

* Remove everything but the essentials

* Add library with proper support

* Fix stale comments
2021-04-20 17:34:11 +02:00
Jan Bouwhuis ff367cfcb6
Mqtt cover avoid warnings on empty payload ()
* No warnings on extra json values with templates

* ignore empty received payload
2021-04-20 15:47:40 +02:00
René Klomp 12853438c5
SMA code quality improvement and bugfix ()
* Minor code quality improvements
Thanks to @MartinHjelmare

* Convert legacy dict config to list

* Improved test

* Typo

* Test improvements

* Create fixtures in conftest.py
2021-04-20 10:59:02 +02:00
jjlawren 523a71ac20
Set temperature precision for Ecobee climate entities to tenths () 2021-04-19 17:41:30 -07:00
Dermot Duffy 1560c00db1
Use Hyperion human-readable effect names instead of API identifiers () 2021-04-19 23:46:18 +02:00
Joakim Sørensen a5806b59f2
Raise HassioAPIError when error is returned ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-19 08:23:43 -07:00
J. Nick Koston b8001b951b
Avoid executor jumps in history stats when no update is needed () 2021-04-19 08:23:10 -07:00
J. Nick Koston 6d137d2316
Increase recorder test coverage ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-19 08:22:38 -07:00
Vladimír Záhradník 05755c27f2
Log an error if modbus Cover is not initialized correctly () 2021-04-19 16:52:08 +02:00
Chris Browet 591d09c177
Use google assistant TemperatureControl trait to report sensor ()
* CHG: use TemperatureControl trait to report sensor

* fixup: blacked

* fixup: flaked

* fixup: flaked

* Adjust tests

* fixup test and rebase

* test coverage
2021-04-19 11:41:30 +02:00
J. Nick Koston 7f6572893d
Add services to the profiler to log threads and event loop schedule ()
* Add services to the profiler to log threads and event loop schedule

* improve readability

* increase log debug

* bigger

* tweaks

* Update homeassistant/components/profiler/__init__.py

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

* Update homeassistant/components/profiler/__init__.py

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

* remove schema= and cleanup existing

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-19 11:39:34 +02:00
J. Nick Koston e24f5831a2
Force recorder shutdown at final write event ()
* Force recorder shutdown at EVENT_HOMEASSISTANT_FINAL_WRITE

* remove unreachable

* remove unreachable

* simplify

* cancel in async
2021-04-19 11:24:17 +02:00
J. Nick Koston 0b26294fb0
Small cleanups to rachio ()
- Remove unused async_step
- Reduce async callbacks from executor
2021-04-19 10:39:45 +02:00
Felipe Martins Diel e98f27ead6
Use broadlink.hello() for direct discovery () 2021-04-19 10:16:03 +02:00
J. Nick Koston 344717d07d
Reduce time to first byte for frontend index ()
Cache template and manifest.json generation
2021-04-18 21:17:30 -07:00
Felipe Martins Diel 6a3832484c
Do not log error messages when discovering Broadlink devices () 2021-04-18 18:12:27 -10:00
Michael a050c8827b
Add battery sensor to fritzbox smart home devices () 2021-04-18 12:30:58 -10:00
J. Nick Koston 6e911ba19f
Shutdown bond bpup and skip polling after the stop event () 2021-04-18 13:46:46 -07:00
Brent Petit 080c89c761
Only set fan state in ecobee set_fan_mode service () 2021-04-18 22:35:03 +02:00
J. Nick Koston 04a0ca14e0
Ensure shutdown does not deadlock () 2021-04-18 08:55:51 -10:00
Brett afd79a675c
Add set_myzone service to Advantage Air ()
* Add set_myzone service requested on forums

* Add MyZone binary sensor for climate zones

* Fixed Black on binary_sensor.py

* Add the new entity

* Fix spelling

* Test myZone value

* MyZone Binary Sensor test

* Fixed new binary sensor tests

* Fix removed dependancy

* Correct fixture

* Update homeassistant/components/advantage_air/binary_sensor.py

Co-authored-by: Philip Allgaier <philip.allgaier@gmx.de>

* Updated services.yaml to use target

Co-authored-by: Philip Allgaier <philip.allgaier@gmx.de>
2021-04-18 10:36:34 +02:00
J. Nick Koston 252bcabbea
Fix exception in roomba discovery when the device does not respond on the first try () 2021-04-18 09:48:02 +02:00
J. Nick Koston e06bb3b5e7
Shutdown harmony connection on stop () 2021-04-18 09:44:29 +02:00
J. Nick Koston 46c28f349a
Update mazda to use ConfigEntryAuthFailed () 2021-04-17 09:25:13 -10:00
Aidan Timson 912d5c347c
Add reauth flow for lyric () 2021-04-17 07:20:16 -10:00
Brandon Rothweiler 189511724a
Add device tracker platform to Mazda integration ()
* Add device tracker platform for Mazda integration

* Split device tests into a separate file

* Address review comments
2021-04-17 11:26:07 +02:00
J. Nick Koston f96a6e878f
Ensure restore state is not written after the stop event ()
If everything lined up, the states could be written
while Home Assistant is shutting down after the stop
event because the interval tracker was not canceled on
the stop event.
2021-04-17 09:03:18 +02:00
J. Nick Koston 673f542cde
Do not wait for websocket response to be delivered before shutdown ()
- Waiting was unreliable since the websocket response could take a few seconds to get delivered
- Alternate frontend fix is https://github.com/home-assistant/frontend/pull/8932
2021-04-16 20:57:28 -07:00
jan iversen ea9641f980
Apply Precision/Scale/Offset to struct in modbus sensor ()
The single values in struct are corrected with presicion, scale and offset,
just as it is done with single values.
2021-04-16 22:33:58 +02:00
Franck Nijhof 7264c95217
Clean up superfluous integration setup - part 6 () 2021-04-16 09:23:27 -07:00
Franck Nijhof af80ca6795
Clean up superfluous integration setup - part 5 () 2021-04-16 09:22:56 -07:00
Franck Nijhof 969c147b77
Clean up superfluous integration setup - part 4 ()
* Clean up superfluous integration setup - part 4

* Adjust tests
2021-04-16 17:46:49 +02:00
Franck Nijhof 93dbc26db5
Fix Coronavirus integration robustness ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-16 10:53:19 +02:00