Commit Graph

6891 Commits (745823dd5520ce0bbbb1a3a42d07ffdf3b1edaca)

Author SHA1 Message Date
Austin Drummond d1566bd210
Add HomeKit humidifier/dehumidifier (#42311)
* add HomeKit humidifier/dehumidifier

* added more test coverage

* simplified char logic

Co-authored-by: Quentame <polletquentin74@me.com>

* use mode constants

* Renamed HomeKit Contorller

Co-authored-by: Quentame <polletquentin74@me.com>

* improved threshold logic

* split up homekit humidifier into 2 entities

* fixed tests

* fixed mode and switch logic

* added set mode tests

* removed redundant methods present in base class

Co-authored-by: Quentame <polletquentin74@me.com>
2020-11-14 17:59:13 +00:00
Jc2k cc396b9736
Add initial camera support to homekit_controller (#43100) 2020-11-14 12:07:22 +00:00
Thomas Delaet 293f8eaaf3
Add quarter-hour period feature for utility_meter component (#41999)
* add support for quarter-hourly intervals to utility meter (15 minutes)

* add tests

* add test for every quarter

* Update homeassistant/components/utility_meter/sensor.py

Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>

Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-11-14 11:53:59 +01:00
Allen Porter 3e46c42307
Catch the right nest stream refresh exception error (#43189) 2020-11-13 22:37:09 -08:00
Aaron Bach 907907e6f9
Revert "Remove YAML config for Tile (#43064)" (#43199)
This reverts commit 19f48e180c.
2020-11-14 00:04:34 +01:00
Paulus Schoutsen bae026a6fe
Add support for selectors in services.yaml (#43162)
* Add support for selectors in services.yaml

* Add base schema validation
2020-11-13 22:53:55 +01:00
Charles Garwood 71b8aad91b
Update ozw get_config_parameter websocket response (#43058) 2020-11-13 10:06:34 -05:00
Daniel 5de30e19bb
Rewrite google_wifi unittest tests to pytest style (#42030) 2020-11-13 15:40:46 +01:00
Paulus Schoutsen 7a85b3ea66
Add test to access current request in websocket API (#43133) 2020-11-13 14:20:47 +01:00
Anders Melchiorsen 55b214ec9c
Fix time_date interval for DST (#43166) 2020-11-13 13:32:56 +01:00
Paulus Schoutsen 0a717f313e
Improve entity domain validator (#43164) 2020-11-13 13:31:43 +01:00
Anders Melchiorsen 87d86026ed
Fix time_date timestamp offsets (#43165) 2020-11-13 13:29:57 +01:00
Paulus Schoutsen 8dbd54bed1
Disable parsing scientific/complex number notation in template type (#43170) 2020-11-13 13:22:29 +01:00
Simone Chemelli 7bcd92172a
Remove relative time sensor from cert_expiry (#42338) 2020-11-13 13:15:37 +01:00
Paulus Schoutsen 890d740093
Further improve MFI tests (#43167) 2020-11-13 10:51:27 +01:00
J. Nick Koston 4907996dd6
Guard against empty ssdp locations (#43156) 2020-11-13 09:40:25 +01:00
Anders Melchiorsen 1a888433cb
Fix beat calculation (#43142) 2020-11-13 09:33:00 +01:00
Anders Melchiorsen e0f1d0ab20
Mock time_date sensor tests (#43141) 2020-11-13 09:31:55 +01:00
Martin Hjelmare a665e152a9
Fix aurora config flow tests (#43128) 2020-11-12 12:11:05 +01:00
Franck Nijhof 6f326a7ea4
Add support for multiple event triggers in automation (#43097)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-12 11:58:28 +01:00
Aaron Bach 24840cce23
Add a config flow for Recollect Waste (#43063)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-12 11:00:42 +01:00
SukramJ d7e5d1bfaf
Bump dependency for HomematicIP Cloud (#43018)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-12 10:33:01 +01:00
Bram Kragten 1c7080d5c5
Add save and delete WS commands to blueprints (#42907)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-11 23:32:46 +01:00
djtimca d47b3a5f44
Fix Aurora integration including externalizing API to PyPi and adding config_flow (#43045)
Co-authored-by: Pawel <pszafer@gmail.com>
2020-11-11 20:36:16 +01:00
Chris Talkington df5a8c4dac
Use media player image proxy for roku media browser (#43070) 2020-11-11 20:17:46 +01:00
Joakim Sørensen 403514ccb3
Add system health section for the Supervisor (#43074) 2020-11-11 20:12:24 +01:00
Moritz Schmitz von Hülst 434d39a5ea
Add initial rest query params (#42198)
* add initial rest query params

* of course I didn't run black

* fix tests

* fix tests

* add test

* reformat

* add binary sensor test

* fix tests

* add one more test and fix switch

* should not have touched that

* if you don't pay attention once
2020-11-11 09:03:55 -10:00
Michael dbe89c1e02
Add reboot and shutdown service to synology_dsm (#42697)
* add reboot and shutdown service to synology_dsm

* apply suggestions

* make _async_setup_services() async

* add comment to make sure unique_id is serial
2020-11-11 19:06:50 +01:00
uvjustin 66dccd86bd
Modify wait timeout in stream (#42794)
* Set wait timeout to 40

* Use dynamic wait_timeout

* Catch error in container open

* Get restart times from const.py

* Fix test_stream_keepalive
2020-11-11 12:32:56 -05:00
Erik Montnemery 8cc7069323
Bump hatasmota to 0.0.29 (#43013) 2020-11-11 13:51:09 +01:00
Aaron Bach 19f48e180c
Remove YAML config for Tile (#43064) 2020-11-11 09:44:14 +01:00
Rob Bierbooms 930866bad5
Add MIN_TIME_BETWEEN_UPDATES to dsmr integration (#43057) 2020-11-11 09:21:07 +01:00
J. Nick Koston 94bf55e29b
Limit concurrency of async_get_integration to avoid creating extra threads (#43085)
* Limit concurrency of async_get_integration to avoid creating extra threads

Since async_get_integration is waiting on the disk most of the time
it would end up creating many new threads because the disk could
not deliver the data in time.

* pylint
2020-11-10 21:34:54 -10:00
Paulus Schoutsen ec1b9c2099
Fix mfi test (#43067) 2020-11-11 00:03:16 +01:00
Paulus Schoutsen 7745408440
System health improvement (#43066) 2020-11-10 23:56:50 +01:00
Allen Porter 94db07ca8c
Update nest sdm camera to refresh in background (#42865)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-10 23:48:02 +01:00
Paulus Schoutsen 9f4480a634
Add system health streaming updates (#42831) 2020-11-10 22:45:59 +01:00
Erik Montnemery 8a7febcfbe
Improve restore of deleted devices (#42703)
* Improve restore of deleted devices

* Simplify
2020-11-10 22:14:39 +01:00
Paulus Schoutsen b1c78554f2
Fix mfi test (#43060) 2020-11-10 22:09:38 +01:00
Erik Montnemery 4e49bd0596
Correct handling of existing MQTT subscriptions (#43056) 2020-11-10 21:55:26 +01:00
Paulus Schoutsen 3af1771616
Include device_id in ZHA event (#43037) 2020-11-10 12:43:15 +01:00
Elena Rogleva c029d29f11
Rewrite the pilight/test_sensor.py tests to use async pytest functions (#42418) 2020-11-10 11:11:56 +01:00
Felipe Martins Diel 48e954e038
Change instructions for unlocking Broadlink devices (#42023) 2020-11-10 10:42:59 +01:00
Peter Epley b099726854
Add function to remove holidays from workday sensor (#41988) 2020-11-10 10:26:55 +01:00
Aaron Bach 244bfb2096
Deprecate YAML config for Notion (0.119 removal) (#43026) 2020-11-09 23:47:38 -06:00
Diego Elio Pettenò 6b21df9053
Expose Dyson PureCool filter life remaining percentage (#42765) 2020-11-09 23:01:13 +01:00
J. Nick Koston c7f35b20fb
Make all translations cacheable (#42892) 2020-11-09 22:36:45 +01:00
J. Nick Koston add50cb33a
Add services to log and dump objects to the profiler to help track down memory leaks (#42951)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-09 10:54:18 -10:00
Erik Montnemery 5694e4190c
Extend WS API result when enabling an entity (#42667)
* Extend WS API result when enabling an entity

* Fix tests

* Fix tests

* Move updated registry entry to sub dict

* Address review comments

* Increase test coverage
2020-11-09 19:47:45 +01:00
Martin Hjelmare 1338c4a425
Add data entry flow show progress step (#42419) 2020-11-09 18:39:28 +01:00
Paulus Schoutsen aec191b558
Support datetime sensor in time trigger (#42899) 2020-11-09 14:50:54 +01:00
Aaron Bach 3707b72a37
Deprecate YAML config for AirVisual (0.119 removal) (#42581) 2020-11-09 13:41:04 +01:00
Martin Hjelmare 6c5ef0970a
Add ozw config flow add-on management (#42421)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-09 13:30:19 +01:00
Erik Montnemery b45fa29077
Force color or white mode exclusivity for MQTT lights (#42887) 2020-11-09 12:51:01 +01:00
Guido Schmitz 804579cd54
Update devolo-home-control-api to 0.16.0 (#42944) 2020-11-09 12:17:35 +01:00
Matthew Donoughe bc4bbaf6ef
Add device trigger support for device trackers (#42324)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-09 12:04:16 +01:00
springstan 67b3552165
Add more units to distance conversion util (#40181)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-09 11:38:15 +01:00
Allen Porter 64f06b2b00
Update nest SDM climate simplifying support for eco mode (#42955) 2020-11-09 11:35:38 +01:00
Paulus Schoutsen e477e94ddd
Fix flaky epson CI (#42999) 2020-11-09 10:45:17 +01:00
springstan 30b94892c4
Use strings instead of f-strings for constants (#40619) 2020-11-09 10:09:53 +01:00
Raman Gupta a416a9e046
Allow options flows to be aborted (#41875) 2020-11-09 08:59:42 +01:00
Andrew Marks 42cdbc7e1d
Correct logging and add test case for sharkiq (#41863)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-11-09 08:33:09 +01:00
Xiaonan Shen f499187835
Fix yeelight binary sensor unique ID (#42562) 2020-11-09 08:32:21 +01:00
On Freund 5a7e4b4dae
Add zone_entity_id to Risco events (#39678)
* Add zone_entity_id to Risco events

* Add comment

* Fix dependency on order
2020-11-08 12:14:43 -06:00
epenet 7c397a02b7
Add onewire switches (#42962)
* Add support for switches

* Fix stale comment
2020-11-08 12:06:41 -06:00
J. Nick Koston 2845fca08e
Remove debug prints from utcnow test (#42977) 2020-11-08 11:48:01 -06:00
Tom 877bfcb308
Add support for Stretch product to Plugwise integration (#40108)
* Initial switch-group/stretch with failing wk_lisa_battery test

* Adding switch tests, but TypeErrors, needs more investigation

* Fixes and tests aligned

* Review updates

* Use const

* Comments

* Add stretch hostname for testing part

* Remove unused consts

* Revert guardings in line with -beta

* Catchup with dev (mostly with ourselves from #41201)

* Update docstring

* Remove debug logging

* Fix for #42725 (incorrect entity namingi)

* Fix naming for gas interval

* Add missing CONF_USERNAME and use of it

* Change "dummy" to "class"

* Don't use "class"

* Fix CONF_USERNAME default, dummy and other consts

Co-authored-by: Bouwe Westerdijk <11290930+bouwew@users.noreply.github.com>
2020-11-08 11:09:43 -06:00
jan iversen 55cdec8c4e
Add test for register configuration for modbus switch (#42604)
* check for false config in modbus tests.

add call to pytest.fail() if device cannot be defined.

* correct bit error in register read.

Only LSB is to be considered for checking ON/OFF

* Add register tests for modbus switch.

Copy the coil tests to work for register tests.

* allow test coverage to control switch.py

With both register and coil test the coverage is a log higher than 50%

* Correct minor bug in handling of register in modbus switch

* Add state_on/state_off test for modbus switch

* restore modbus switch exclusion from coverage

switch file coverage is only at 72%, ideally we want either 80%+ coverage on the file or 90%+ on the component itself which is only about 83% currently with this file included. this is so we keep the overall project coverage in 90%+.

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-11-08 10:42:45 -06:00
Erik Montnemery 51b4bc547c
Bump hatasmota from 0.0.27 (#42802)
* Adjust tests

* Add test for deprecated discovery message

* Update status sensors

* Bump hatasmota to 0.0.27

* Update tests
2020-11-08 17:11:25 +01:00
Franck Nijhof 6e9b65405a
Disable legacy templates by default (#42967) 2020-11-08 16:11:38 +01:00
epenet 2b2d7558de
Add binary_sensor platform to onewire integration (#42832)
* Add binary_sensor platform to onewire integration

* Keep the same name

* Rework tests

* Rework tests
2020-11-07 20:42:20 -06:00
J. Nick Koston 1626c236dc
Only call utcnow once during a state changed event (#42941) 2020-11-07 15:51:06 -10:00
Pawel df38c59dc8
Add config flow to epson and fix timeouts (#39697) 2020-11-07 18:15:29 +01:00
Paulus Schoutsen 15da7b3ca6
Cloud: Recover when internet is not available yet (#42877) 2020-11-06 12:12:18 +01:00
Allen Porter a5da98680a
Add nest climate support for SDM API (#42702)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-06 09:57:02 +01:00
Jeff Irion cfc8e96b15
Handle overriding of default apps for Android TV (#41893)
* Handle overriding of default apps for Android TV

* Fix comment
2020-11-05 16:41:22 +01:00
epenet 38495057a5
Cleanup onewire tests (#42864)
* Cleanup onewire tests

* Cleanup onewire tests
2020-11-05 10:37:35 -05:00
Anders Melchiorsen 650c57db5b
Fix async_track_utc_time_change firing too early (#42176) 2020-11-05 16:34:56 +01:00
Diederik van den Burger 60234ecf40
Add hdmi input attribute to AndroidTV (#42571)
* bumps androidtv to 0.0.53

* add hdmi_input attribute to androidtv

* update tests for hdmi_input attribute

* chore: update docstrings
2020-11-05 14:36:46 +01:00
epenet c7cdad2b5a
Default some entities to disabled (#42797) 2020-11-04 10:08:50 +01:00
Erik Montnemery 56ee99372d
Force color or white mode exclusivity for Tasmota lights (#42772) 2020-11-04 10:03:32 +01:00
J. Nick Koston 9e0043fb17
Fix rest sensors with resource templates (#42818) 2020-11-04 08:52:47 +01:00
Niccolo Zapponi 5ddf99e496
Add support for OpenWeatherMap One Call API (#39839) 2020-11-03 08:37:30 -10:00
Paulus Schoutsen 7719e878f9
Migrate system health to use integration_platform (#42785) 2020-11-03 14:28:55 +01:00
Allen Porter 89a5c9fcac
Add image support to nest SDM api (#42556) 2020-11-03 09:31:43 +01:00
Jason Hunter 5a4c1dbcc4
Add DPI Restriction switch to UniFi integration (#42499)
* initial implementation for controlling DPI restrictions

* address PR review comments and add DataUpdateCoordinator

* fix existing tests against new lib version

* add tests for DPI switches

* bump aiounifi

* listen to events instead of polling

* fix tests

* remove useless test

* bump aiounifi

* rename device to UniFi Controller per PR feedback
2020-11-03 08:36:37 +01:00
Paulus Schoutsen ebe3cbc058
Drop usage of asynctests (#42756) 2020-11-02 19:57:24 +01:00
Shay Levy f45075eeb5
Use own CoAP lib and support for multicast updates (#42718)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-02 16:46:34 +01:00
Paulus Schoutsen 0fb587727c
Add initial blueprint support (#42469)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-02 15:00:13 +01:00
Michael 8d9a844e84
Add verify_ssl option for connection setup to synology_dsm (#42539) 2020-11-02 14:23:16 +01:00
Raman Gupta 098dead16d
Fix Vizio host string for zeroconf discovery (#42738) 2020-11-02 13:08:36 +01:00
Paulus Schoutsen 1844e30858
Add support for manual updating a data coordinator (#42746) 2020-11-02 09:54:08 +01:00
Alexei Chetroi 8868028dcd
Bump up ZHA dependencies (#42679)
* Bump up ZHA dependencies

* Fix tests because of zigpy request signature change
2020-11-01 11:05:55 -05:00
Lindsay Ward 181811b7b8
Fix typo exceeded, change to exceed, in HomeKit (#42705) 2020-11-01 03:51:56 -10:00
taiyeoguns 9fc92ab04e
Remove classes in nx584 tests (#42628) 2020-11-01 13:27:33 +01:00
springstan c7fbbbe935
Allow saving zero precision option in Opentherm_gw (#42593)
* Allow saving zero precision option in Opentherm_gw

* Add default 0 back for precision option

* Adjust config flow test for zero precision
2020-10-31 16:19:17 +01:00
Adrian Suwała d67d8e76dd
Remove redundant mock_storage fixture from mqtt_statestream tests (#42652) 2020-10-31 15:28:06 +01:00
Erik Montnemery 62b5279d86
Add WS command to remove a Tasmota device (#42266) 2020-10-30 09:56:41 +01:00
Adrian Suwała 6011756e90
Rewrite mfi unittest tests to pytest (#42510) 2020-10-30 09:13:33 +01:00
J. Nick Koston 2bbd2a6e70
Reduce complexity of storage writes (#42576)
* Reduce complexity of storage writes

* add test

* stop hass

* workaround bad test
2020-10-29 22:35:51 -05:00