Commit Graph

8158 Commits (71545f2a6868140825edb4b6a9f5cb556d2a9a3e)

Author SHA1 Message Date
David F. Mulcahey b91d2be00b
Better ZHA device reconfiguration ()
* initial take

* cleanup

* fix mock for configure_reporting
2021-04-27 10:04:22 -04:00
Bram Kragten b00ccf98f0
TP Link: Don't report HS when in CT mode ()
* TP Link: Don't report HS when in CT mode

* Update tests
2021-04-27 11:19:21 +02:00
jan iversen e5e215353d
Add swap byte/word/byteword option to modbus sensor ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-27 10:49:41 +02:00
J. Nick Koston a67b9eff17
Reduce config entry setup/unload boilerplate D-F () 2021-04-26 20:46:49 -10:00
Robert Svensson 58ad3b61f7
Entities for secondary temperature values created by certain Xiaomi devices in deCONZ ()
* Create sensors for secondary temperature values created by certain Xiaomi devices

* Fix tests
2021-04-27 08:43:06 +02:00
J. Nick Koston b27e9e376d
Use StaticPool for recorder and NullPool for all other threads with sqlite3 () 2021-04-26 19:20:31 -10:00
jan iversen 677d8e9a89
Add restore last state test to modbus sensor () 2021-04-27 00:20:50 +02:00
jjlawren dc50524f32
Cleanup implementation of new Sonos sensors () 2021-04-26 23:59:04 +02:00
J. Nick Koston 51be2f860a
Reduce boilerplate to setup config entry platforms A-C ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-26 07:46:55 -10:00
Alexei Chetroi 4a6bb96a0f
Stop fast polling of a Zigbee device after a check-in command ()
* Stop fast polling after a check-in

* Update tests
2021-04-25 21:15:04 -04:00
J. Nick Koston 855559004b
Drop unneeded async_setup from august () 2021-04-25 23:13:54 +02:00
Michael a5e25e519f
Remove yaml configuration from fritzbox () 2021-04-25 09:49:08 -10:00
Ville Skyttä 631ab367e2
Fix typing.Any spelling () 2021-04-25 09:36:21 -10:00
Marc Mueller 510a3ae915
Improve zeroconf test fixture () 2021-04-25 08:16:38 -10:00
jjlawren 3be8c9c1c0
Add battery support for Sonos speakers ()
Co-authored-by: Walter Huf <hufman@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-25 07:20:21 -10:00
Dermot Duffy 3077363f44
Supplementary fixes to new motionEye integration () 2021-04-25 15:27:46 +02:00
J. Nick Koston 0862212942
Switch screenlogic discovery to use async version () 2021-04-25 12:41:40 +02:00
J. Nick Koston 3fa8ffa731
Enable mccabe complexity checks in flake8 ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Simone Chemelli b92f29997e
Rework Fritz config_flow and device_tracker ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-25 00:10:33 -10:00
J. Nick Koston e2837f08e8
Small cleanups for august () 2021-04-25 11:32:34 +02:00
Ville Skyttä 153d6e891e
Use config_entries.SOURCE_* constants () 2021-04-25 11:27:40 +02:00
Michael a352516944
Implement DataUpdateCoordinator to fritzbox integration () 2021-04-24 14:40:12 -10:00
Marc Mueller f1d48ddfe3
Update pylint to 2.8.0 () 2021-04-24 14:39:24 -10:00
Paulus Schoutsen dcee78b747
Template sensor/binary sensors without trigger now respect section unique id () 2021-04-24 07:14:31 -07:00
Robert Svensson b0fecdcc3d
Add entity service for deCONZ alarm control panel to control states used to help guide user transition between primary states () 2021-04-24 15:46:16 +02:00
Dermot Duffy bbe58091a8
Create a motionEye integration () 2021-04-23 23:00:28 -07:00
Jakub Bartkowiak 33d4d545a7
Fix charging error in Roomba integration () 2021-04-23 17:22:56 -10:00
Joakim Sørensen 019484f148
Use dev endpoint for dev installations () 2021-04-23 20:57:10 +02:00
Erik Montnemery 8013eb0e08
Allow data entry flows to hint for additional steps () 2021-04-23 11:02:12 -07:00
Paulus Schoutsen a6d87b7fae
Batch Google Report State ()
* Batch Google Report State

* Fix batching
2021-04-23 10:56:23 -07:00
Guido Schmitz c6edc7ae4f
Clean up devolo Home Control config flow () 2021-04-23 13:48:24 +02:00
jan iversen 9685cefba4
Integrations h* - i*: Rename HomeAssistantType to HomeAssistant. () 2021-04-23 10:11:58 +02:00
Ville Skyttä a396619251
Use disabled_by constants ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
jan iversen d52bc2373f
Integrations i* - m*: Rename HomeAssistantType to HomeAssistant. () 2021-04-23 09:55:20 +02:00
jan iversen 017e32a0cb
Integrations h*: Rename HomeAssistantType to HomeAssistant. () 2021-04-23 09:49:02 +02:00
Erik Montnemery a5a3c98aff
Make lights supporting rgbw and rgbww accept colors ()
* Allow lights supporting rgbw and rgbww accepting colors

* Tweak, update tests
2021-04-23 09:25:37 +02:00
Paulus Schoutsen 265fdea83b
Allow config entries to store a reason () 2021-04-23 09:23:43 +02:00
Thomas Hollstegge 66dbb17a4a
Fix opening cover via emulated_hue without specifying a position () 2021-04-22 19:12:52 -10:00
Matt Zimmerman e6d94845dd
SmartTub: use get_full_status() () 2021-04-22 18:55:58 -10:00
Matt Zimmerman fec6ea3f76
SmartTub cleanup () 2021-04-22 18:54:55 -10:00
Erik Montnemery d28b959a09
Improve sun condition trace () 2021-04-22 16:46:27 -07:00
Erik Montnemery a9065f381d
Use supported_color_modes in emulated_hue () 2021-04-22 16:42:28 -07:00
Paulus Schoutsen 1016d4ea28
Support trigger-based template binary sensors ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-22 14:54:28 -07:00
jan iversen 9410aefd0d
Integrations m*: Rename HomeAssistantType to HomeAssistant. () 2021-04-22 14:53:37 -07:00
J. Nick Koston d4329e01ef
Fix deadlock in async_get_integration_with_requirements after failed dep pip install () 2021-04-22 22:32:38 +02:00
jan iversen d76993034e
Replace HomeAssistantType with HomeAssistant for integrations m* - n* ()
* Integration neato: rename HomeAssistantType to HomeAssistant.

* Integration mysensors: rename HomeAssistantType to HomeAssistant.

* Integration mobile_app: rename HomeAssistantType to HomeAssistant.

* Integration minecraft_server: rename HomeAssistantType to HomeAssistant.

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-22 22:23:36 +02:00
Guido Schmitz 77372d9094
Add zeroconf detection to devolo Home Control ()
Co-authored-by: Markus Bong <2Fake1987@gmail.com>
2021-04-22 08:38:56 -10:00
jan iversen c351098f04
HomeAssistantType —> HomeAssistant for Integrations p* - s* () 2021-04-22 19:58:02 +02:00
jan iversen 9879b7becf
Rename HomeAssistantType to HomeAssistant, integrations w* - z* ()
* Integration zha: HomeAssistantType -> HomeAssistant.

* Integration zerproc: HomeAssistantType -> HomeAssistant.

* Integration xbox: HomeAssistantType -> HomeAssistant.

* Integration wunderground: HomeAssistantType -> HomeAssistant.

* Integration wled: HomeAssistantType -> HomeAssistant.

* Integration water_heater: HomeAssistantType -> HomeAssistant.

* Integration websocket_api: HomeAssistantType -> HomeAssistant.

* Integration wilight: HomeAssistantType -> HomeAssistant.
2021-04-22 11:04:28 -04:00
jan iversen 6992e24263
Rename HomeAssistantType —> HomeAssistant, integrations t* - v* ()
* Integration vizio: HomeAssistantType -> HomeAssistant.

* Integration velbus: HomeAssistantType -> HomeAssistant.

* Integration vacuum: HomeAssistantType -> HomeAssistant.

* Integration upnp: HomeAssistantType -> HomeAssistant.

* Integration upcloud: HomeAssistantType -> HomeAssistant.

* Integration twinkly: HomeAssistantType -> HomeAssistant.

* Integration tts: HomeAssistantType -> HomeAssistant.

* Integration tradfri: HomeAssistantType -> HomeAssistant.

* Integration traccar: HomeAssistantType -> HomeAssistant.

* Integration tplink: HomeAssistantType -> HomeAssistant.
2021-04-22 10:53:57 -04:00
jan iversen 2e084f260e
Rename HomeAssistantType —> HomeAssistant, integrations s* - t* () 2021-04-22 16:21:38 +02:00
Maciej Bieniek e75233b279
Bump `brother` library to version 1.0.0 ()
* Bump brother library

* Improve attributes generation
2021-04-22 13:20:14 +02:00
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