Commit Graph

24910 Commits (5c71ba578db1ba433c3275184016b006ec6cae67)

Author SHA1 Message Date
J. Nick Koston 30382c3dbe
Limit log spam from rest and include reason in platform retry (#48666)
- Each retry was logging the error again
- Now we set the cause of the PlatformNotReady to allow Home Assistant to log as needed
2021-04-04 20:26:18 -07:00
Robert Svensson 9ba66fe232
Add more device triggers to deCONZ integration (#48680) 2021-04-04 20:25:57 -07:00
HomeAssistant Azure d5e5450540 [ci skip] Translation update 2021-04-05 00:05:16 +00:00
J. Nick Koston 32daa63265
Use shared aiohttp.ClientSession in bond (#48669) 2021-04-05 00:12:58 +02:00
Franck Nijhof 9553ae8196
Upgrade wakonlan to 2.0.0 (#48683) 2021-04-04 23:44:43 +02:00
J. Nick Koston e008e80bcf
Cleanup sonos (#48684)
- Remove unused code
- Use async_add_executor_job
- Enforce typing
2021-04-04 23:28:29 +02:00
Raman Gupta 95e1daa451
Bump zwave_js dependency to 0.23.1 (#48682) 2021-04-04 16:09:07 -04:00
jan iversen d5ef382fd5
Add modbus write coils (#48676)
* Add missing function in class.

write_coils was missing.

* Remove dead code.

The HA configuration secures that CONF_TYPE only contains legal values,
so having an empty assert to catch unknown values is dead code.

An empty assert is not informative.
2021-04-04 21:53:52 +02:00
Franck Nijhof b34cc7ef2c
Remove Social Blade integration (ADR-0004) (#48677)
* Remove Social Blade integration (ADR-0004)

* Cleanup coveragerc
2021-04-04 20:40:08 +02:00
jan iversen 2511e1f229
Remove modbus duplicate strings (#48654)
* Reuse HA constants for serial configuration.

Reusing HA consts reduces the need for translation.

Sort/group constants in const.

* Change const name ATTR_* to CONF_*

* Correct wrong import

* ATTR_* for service and CONF_* for schemas.

* Revert change to service call.

* Rename CONF_TEMPERATURE -> ATTR_TEMPERATURE

Avoid possible division problem in set_temperature.
2021-04-04 14:02:47 +02:00
Franck Nijhof d75f825530
Upgrade holidays to 0.11.1 (#48673) 2021-04-04 13:28:08 +02:00
mburget ecec3c8ab9
Fix Raspi GPIO binary_sensor produces unreliable responses (#48170)
* Fix for issue #10498 Raspi GPIO binary_sensor produces unreliable responses ("Doorbell Scenario")

Changes overtaken from PR#31788 which was somehow never finished

* Fix for issue #10498 Raspi GPIO binary_sensor produces unreliable response. Changes taken over from PR31788 which was somehow never finished

* Remove unused code (pylint warning)
2021-04-04 12:22:43 +02:00
J. Nick Koston c1e788e665
Only listen for zeroconf when the esphome device cannot connect (#48645) 2021-04-03 17:11:32 -07:00
J. Nick Koston bc06100dd8
Make sonos event asyncio (#48618) 2021-04-03 17:10:48 -07:00
HomeAssistant Azure d3b4a30e18 [ci skip] Translation update 2021-04-04 00:04:56 +00:00
epenet 86176f1bf9
Add retry mechanism on onewire sysbus devices (#48614)
* Add retry mechanism on sysbus

* Update tests

* Move to async

* Move blocking calls on the executor
2021-04-03 23:08:35 +02:00
Petro31 545fe7a7be
Add Compensation Integration (#41675)
* Add Compensation Integration

Adds the Compensation Integration

* Add Requirements

add missing requirements to compensation integration

* Fix for tests

Fix files after tests

* Fix isort

ran isort

* Handle ADR-0007

Change the configuration to deal with ADR-0007

* fix flake8

Fix flake8

* Added Error Trapping

Catch errors.
Raise Rank Warnings but continue.
Fixed bad imports

* fix flake8 & pylint

* fix isort.... again

* fix tests & comments

fix tests and comments

* fix flake8

* remove discovery message

* Fixed Review changes

* Fixed review requests.
* Added test to test get more coverage.

* Roll back numpy requirement

Roll back numpy requirement to match other integrations.

* Fix flake8

* Fix requested changes

Removed some necessary comments.
Changed a test case to be more readable.

* Fix doc strings and continue

* Fixed a few test case doc strings
* Removed a continue/else

* Remove periods from logger

Removed periods from _LOGGER errors.

* Fixes

changed name to unqiue_id.
implemented suggested changes.

* Add name and fix unique_id

* removed conf name and auto construct it
2021-04-03 22:42:09 +02:00
jan iversen 23fae255ff
Make modbus WRITE_COIL use write_coils in case of an array (#48633)
* WRITE_COIL uses write_coils in case of an array.

WRITE_REGISTER uses write_register/write_registers depending
on whether value is singular or an array.

WRITE_COIL is modified to be similar and uses
write_coil/write_coils depending on whether value is singular or an
array.

* Update SERVICE_WRITE_COIL to allow list.
2021-04-03 13:15:01 +02:00
J. Nick Koston b7ae06f1bb
Bump aiodiscover to 1.3.3 for dhcp (#48644)
fixes #48615
2021-04-03 11:33:45 +02:00
Álvaro Fernández Rojas 2c61c0f258
Fix AEMET town timestamp format (#48647)
Datetime should be converted to ISO format.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-04-03 11:17:17 +02:00
jan iversen cee43b0670
Add modbus CONF_VERIFY_STATE to new switch config (#48632)
Missed CONF_VERIFY_STATE in new switch config, when
copying from old switch config.
2021-04-03 11:00:06 +02:00
HomeAssistant Azure 176b6daf2a [ci skip] Translation update 2021-04-03 00:03:39 +00:00
Paulus Schoutsen e882460933
Support modern config for the trigger based template entity (#48635) 2021-04-02 16:57:16 -07:00
Bram Kragten cffdbfe13c
Updated frontend to 20210402.1 (#48639) 2021-04-02 23:11:39 +02:00
Oliver eed3bfc762
Going async with denonavr (#47920)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-02 07:47:16 -10:00
Paulus Schoutsen 212d9aa748
Fix trigger template entities without a unique ID (#48631) 2021-04-02 10:24:38 -07:00
Paulus Schoutsen bdbb4f939f
Add variables to execute script (#48613) 2021-04-02 06:27:41 -07:00
Shay Levy e76b653246
Bump aioshelly to 0.6.2 (#48620) 2021-04-02 11:48:57 +02:00
HomeAssistant Azure a5dfbf9c44 [ci skip] Translation update 2021-04-02 00:04:54 +00:00
Robert Svensson a61d93adc2
Increase time out for http requests done in Axis integration (#48610) 2021-04-01 16:22:36 -07:00
Paulus Schoutsen 051531d9c1
Clean up mobile app (#48607)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-01 16:22:08 -07:00
Bram Kragten 34ddea536e
Update frontend to 20210402.0 (#48609) 2021-04-01 16:19:57 -07:00
Khole 6482800724
Add hive heat on demand (#48591) 2021-04-02 01:14:40 +02:00
Raman Gupta ebb369e008
Add zwave_js WS API command to call node.refresh_info (#48564) 2021-04-02 00:35:13 +02:00
Franck Nijhof ceeb060c05
Fix websocket search for related (#48603)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-04-01 15:31:19 -07:00
FMKaiba 09eb74fd9d
Upgrade Astral to 2.2 (#48573) 2021-04-02 00:29:08 +02:00
Franck Nijhof e76503ddc3
Remove Geizhals integration (ADR-0004) (#48594) 2021-04-02 00:04:52 +02:00
Franck Nijhof da54b9237b
Typing improvements for SolarEdge (#48596) 2021-04-01 23:59:26 +02:00
Erik Montnemery 76d0f93ec1
Include blueprint input in automation trace (#48575) 2021-04-01 13:34:47 -07:00
Franck Nijhof 528095b9b6
Upgrade numpy to 1.20.2 (#48597) 2021-04-01 13:32:49 -07:00
MatthewFlamm f8f0495319
Add nws sensor platform (#45027)
* Resolve rebase conflict.

Remove logging

* lint: fix elif after return

* fix attribution

* add tests for None valuea

* Remove Entity import

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Import SensorEntity

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Inherit SensorEntity

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* remove unused logging

* Use CoordinatorEntity

* Use type instead of name.

* add all entities

* add nice rounding to temperature and humidity

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-04-01 18:50:37 +02:00
Erik Montnemery 9f481e1642
Include script script_execution in script and automation traces (#48576) 2021-04-01 09:42:23 -07:00
youknowjack0 9d085778c2
Fix timer.finish to cancel callback (#48549)
Timer.finish doesn't cancel the callback, which can lead to incorrect early cancellation of the timer if it is subsequently restarted. 

Bug reported here: https://community.home-assistant.io/t/timer-component-timer-stops-before-time-is-up/96038
2021-04-01 09:32:59 -07:00
Robert Svensson 6ce96dcb63
Don't care about DPI entries when looking for clients to be restored from UniFi (#48579)
* DPI switches shouldnt be restored, they're not part of clients to be restored

* Only care about Block and POE switch entries
2021-04-01 18:02:28 +02:00
Erik Montnemery d26d2a8446
Return config entry details for 1-step config flows (#48585) 2021-04-01 16:20:53 +02:00
epenet 81bdd41fdc
Cleanup orphan devices in onewire integration (#48581)
* Cleanup orphan devices (https://github.com/home-assistant/core/issues/47438)

* Refactor unit testing

* Filter device entries for this config entry

* Update logging

* Cleanup check
2021-04-01 15:06:47 +02:00
Martin Hjelmare fdbef90a57
Remove device class timestamp from device condition and trigger (#48431)
* Remove unit from garmin connect

* Remove unit from hvv departures

* Remove device class timestamp from device condition and trigger

* Remove unit from systemmonitor

* Use device class constant for timestamp in ring
2021-04-01 15:05:10 +02:00
Aaron Bach efa6079c62
Fix incorrect constant import in Ambient PWS (#48574) 2021-04-01 08:00:39 +02:00
HomeAssistant Azure a0483165da [ci skip] Translation update 2021-04-01 00:03:55 +00:00
Joakim Sørensen 1de6fed4b6
Remove analytics from default_config (#48566) 2021-04-01 01:58:48 +02:00
Raman Gupta aae0ccc588
Add config flow support to google_travel_time (#43509)
* add config flow support to google_travel_time

* fix bugs and add strings

* fix import and add new test

* address comments in #43419 since this is a similar PR

* fix default name and test

* add unique ID and device info

* fix test

* feedback from waze PR

* continue incorporating feedback from waze PR

* final fixes and update tests

* call update in lambda

* Update homeassistant/components/google_travel_time/sensor.py

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

* additional fixes

* validate config entry data during config flow and config entry setup

* don't store entity

* patch dependency instead of HA code

* fixes

* improve tests by moving all patching to fixtures

* use self.hass instead of setting self._hass

* invert if

* remove unnecessary else

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-31 22:10:24 +02:00
Robert Svensson bc5d828554
Provide the improved service UX with deCONZ services (#48382)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-31 20:14:26 +02:00
J. Nick Koston 6cf57da89f
Use SOURCE_REAUTH constant for starting reauth flows (#48553) 2021-03-31 19:48:32 +02:00
arturdobo 68801ae5f7
Add Qingping Air Monitor Lite support support (#48181)
* Add cgllc.airm.cgdn1 support

* review remarks

* removed unnecessary lambdas
2021-03-31 19:47:42 +02:00
Simone Chemelli bb7f64596c
Add operation sensor to Shelly Gas (#48462) 2021-03-31 09:46:39 -07:00
jjlawren be71d626c8
Improve Plex device handling (#48369) 2021-03-31 09:37:16 -07:00
Bram Kragten 2f37a5727c
Update frontend to 20210331.0 (#48552) 2021-03-31 09:23:12 -07:00
J. Nick Koston 9790f3f609
Create homekit locks according to spec (#48453)
Any accessories, regardless of transport, that enable physical access to the home, such as door locks, must not be bridged.
2021-03-31 09:22:30 -07:00
LJU 93920704d0
Remove Hass.io terms in strings.json (#48541)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-31 17:19:18 +02:00
Michael 949cd4714a
Fix update of surveillance_station data in Synology DSM (#47966) 2021-03-31 17:18:58 +02:00
Mario Limonciello 9fd6980144
Avoid divide by zero errors in tplink light integration (#48235) 2021-03-31 17:16:24 +02:00
Marvin Wichmann 9e1a17c62e
Update xknx to version 0.17.5 (#48522)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-31 17:04:22 +02:00
jjlawren 7dfe63e06f
Set Plex sensor availability properly (#48546) 2021-03-31 17:02:23 +02:00
Erik Montnemery e2f8bce0a0
Improve error handling for WS API trace/get (#48502) 2021-03-31 15:58:36 +02:00
Philip Allgaier 6fe04f40a2
Ensure HA script and Python script services have a name (#47204)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-03-31 15:09:45 +02:00
J. Nick Koston bee55a0494
Prevent ping integration from delaying startup (#43869) 2021-03-31 15:06:49 +02:00
Erik Montnemery b26779a27a
Add id to automation triggers (#48464) 2021-03-31 14:56:04 +02:00
Philip Allgaier 450f3740cd
Use consolidated constant for "description" (#48490) 2021-03-31 14:12:15 +02:00
jjlawren d62297a28b
Add Plex library count sensors (#48339) 2021-03-31 13:57:16 +02:00
Vincent Le Bourlot 93498ec831
Add missing neato error status (#48508) 2021-03-31 13:48:04 +02:00
Joakim Sørensen 4d8ef115a3
Bump pyhaversion from 3.4.2 to 21.3.0 (#48537) 2021-03-31 12:46:14 +02:00
Nicolas Braem 96857b7466
Add vicare fuelcell (#47167) 2021-03-31 11:29:24 +02:00
Erik Montnemery c7584a1f92
Add color_mode support to MQTT JSON light (#47993) 2021-03-31 11:28:45 +02:00
Franck Nijhof d4d8f74858
Deprecate SolarEdge YAML configuration (#48533) 2021-03-31 10:31:12 +02:00
Robert Svensson c80f34a754
Add support for ZHADoorLock locks to deCONZ integration(#48516) 2021-03-31 09:36:06 +02:00
Anders Melchiorsen 96c391af09
Fix Sonos Line-in favorites (#48524) 2021-03-31 07:22:54 +02:00
uvjustin 379843eb54
Shield async httpx call in generic (#47852)
* Shield async httpx call

* Don't set last_url/last_image on cancellation

* Add test
2021-03-31 12:46:10 +08:00
Steven Looman 7a6c88feeb
Bump async_upnp_client to 0.16.0 (#48521) 2021-03-30 15:36:18 -10:00
Quentame c1ff4197d1
Bump Freebox to 0.0.10 (#48526) 2021-03-30 15:21:11 -10:00
Quentame 7f9c5d7a13
Bump Météo-France to 1.0.2 (#48527) 2021-03-30 15:20:46 -10:00
Quentame bae337554f
Bump Synology DSM to 1.0.2 (#48528) 2021-03-31 02:13:56 +02:00
HomeAssistant Azure 919247f256 [ci skip] Translation update 2021-03-31 00:04:33 +00:00
Bram Kragten d1a1e70726
Search for areas used in automations and scripts (#48499)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-30 15:01:56 -07:00
Michael 309c3a8d82
Fix init for first added shelly device (#48411) 2021-03-30 23:52:02 +02:00
David F. Mulcahey aa0292974a
support feedback for ZHA device reconfiguration (#48447) 2021-03-30 16:35:51 -04:00
Joakim Sørensen 78cff36f96
Remove analytics from updater (#48518) 2021-03-30 22:22:03 +02:00
jugla 76d9c62900
Evaluate AirVisual interval on reboot (#48392)
* Reevaluate interval on reboot (and periodically)

* AirVisual update interval periodically

* AirVisual : update periodically interval request

* AirVisual : update sever request interval periodically

* AirVisual : periodically update interval for server requests

* AirVisual : periodic update for server interval

* Airvisual : periodic update of server interval

* AirVisual : periodic update of server interval

* AirVisual : periodic update of interval request

* Periodic interval update of server request

* AirVisual : periodic update of interval request

* Reassess interval request on periodic event

* ReAssess interval between 2 requests during update

* ReAssess interval between 2 requests periodically

* Reassess interval of server requests periodically

* Reassess the interval between 2 server requests

* Reassess interval between 2 server requests

* Reassess server requests interval periodically

* Assess interval request after inserting instance
2021-03-30 11:03:35 -06:00
Jacob Shufro f5d9713bd5
Add regex-based filters to logger component (#48439)
* Add regex-based filters to logger component

* Switch logger filter tests to use caplog for more coverage, add a scoping test
2021-03-30 06:53:02 -10:00
Ruslan Sayfutdinov 82c94826fb
Enable strict typing for zeroconf (#48450)
* Enable strict typing for zeroconf

* Fix lutron_caseta

* Fix pylint warning

* Fix tests

* Fix xiaomi_aqara test

* Add __init__.py in homeassistant.generated module

* Restore add_job with type: ignore
2021-03-30 06:48:04 -10:00
Matthias Alphart 338be8c70b
KNX passive group addresses (#48009) 2021-03-30 18:14:38 +02:00
J. Nick Koston e9f2062f1b
Fix duplicates and unexpected failures during roomba discovery (#48492) 2021-03-30 17:54:36 +02:00
Franck Nijhof cdd0624629
Correct FAA Delays integration domain in manifest (#48512) 2021-03-30 17:52:29 +02:00
David F. Mulcahey 4dc885dcc3
Add discovery for Tube's Zigbee coordinators to ZHA (#48420)
* add discovery for tube zigbee gateways

* update discovery

* add test

* another test

* develop translations

* review comments
2021-03-30 11:13:26 -04:00
Philip Allgaier 9043a1f5aa
Raise Spotify exception if no active device found (#48486) 2021-03-30 16:54:33 +02:00
Erik Montnemery 9d8521169b
Add 'for' to lock device triggers (#48504)
* Add 'for' to lock device triggers

* Update tests/components/lock/test_device_trigger.py

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

* Update test_device_trigger.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 16:40:57 +02:00
Erik Montnemery 04a09d9215
Add 'for' to media_player device triggers (#48505)
* Add 'for' to media_player device triggers

* Update tests/components/media_player/test_device_trigger.py

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

* Update test_device_trigger.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 16:40:26 +02:00
Erik Montnemery 225d79c216
Add 'for' to vacuum device triggers (#48506)
* Add 'for' to vacuum device triggers

* Apply suggestions from code review

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

* Update test_device_trigger.py

* Update test_device_trigger.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 16:40:08 +02:00
J. Nick Koston f91de1c8b9
Add support for capturing renewals to dhcp discovery (#48242) 2021-03-30 15:41:12 +02:00
Erik Montnemery b3b0904b94
Simplify device trigger code (#48507) 2021-03-30 13:54:27 +02:00
Erik Montnemery 9526701e57
Add 'for' to alarm device triggers (#48503) 2021-03-30 13:49:23 +02:00
Joakim Sørensen f98ce2dd71
Add myself as codeowner to analytics (#48498) 2021-03-30 11:40:11 +02:00
Raman Gupta bc3881db29
Add zwave_js.set_value service (#48487)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 11:13:48 +02:00
J. Nick Koston f8265f44be
Include platform only integrations in analytics (#48493) 2021-03-30 10:46:02 +02:00
David McClosky e47d576ee7
Use MAX_VOLUME constant in vlc_telnet (#48491)
We also don't need to call `int()` anymore due to underlying fixes in
the python-vlc-telnet library.

I believe this is the last item extracted from PR #44776.
2021-03-30 09:57:53 +02:00
J. Nick Koston 0082eca932
Bump yalexs to 1.1.10 for august (#48494)
- Remove workaround for broken reconnect logic in pubnub
2021-03-30 09:37:19 +02:00
Martidjen 99ab084cdd
Add opentherm_gw option for setpoint override mode (#48465)
* Adding option for setpoint override mode

Temporary setpoint override mode can now be set on or off. 'Constant' setpoint override mode will be used when Temporary is set to off

* Changes after review comment

Added default value for the setpoint override mode
2021-03-30 09:35:29 +02:00
Niccolo Zapponi fc8dc038e2
Fixed auth issue for non-2FA iCloud accounts (#48455) 2021-03-29 19:09:27 -10:00
Guido Schmitz 2fbe352ad5
Make devolo home control more robust against connection losts (#48328) 2021-03-29 19:08:08 -10:00
Alan Tse 984fb12fa4
Create new websession if more than one entry in Tesla (#47886)
* Create new websession if more than one entry
closes #47506

* Remove extraneous count

* Always create new session

* Update docs
2021-03-30 06:50:41 +02:00
Marc Mueller 2956eb0902
Update pylint to 2.7.3 (#48488)
* Update pylint to 2.7.3

* Add class-const-naming-style

* Remove unused-import message

* Additional cleanup
2021-03-29 18:02:56 -10:00
Raman Gupta 9a75019a65
Add zwave_js.bulk_set_partial_config_parameters service (#48306)
* Add zwave_js.bulk_set_partial_config_parameters service

* update to handle command status

* add test for awake node

* test using a device in service call
2021-03-29 23:07:55 -04:00
Paulus Schoutsen 114a97bf52 Bump frontend to 20210329.0 2021-03-30 00:33:17 +00:00
Tobias Sauerwein 467bd91c80
Add image proxy to Kodi media browser (#47315) 2021-03-29 17:30:51 -07:00
Joakim Sørensen 09c51da3a2
Add analytics integration (#48256)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-29 17:20:11 -07:00
J. Nick Koston 6b7bcbbc96
Bump aiodiscoer to 1.3.2 for dhcp (#48489)
- Removes unused code in the library
- Cleanup a small slow memory leak
2021-03-29 17:18:54 -07:00
HomeAssistant Azure a1472b174c [ci skip] Translation update 2021-03-30 00:03:46 +00:00
Kevin Worrel 42a060ad33
Add asyncio locks to screenlogic api access points (#48457) 2021-03-29 13:27:17 -10:00
Franck Nijhof c1d5638739
Remove HomeAssistantType alias from entity components - Part 2 (#48468) 2021-03-29 13:24:56 -10:00
Franck Nijhof 855b68faa1
Remove HomeAssistantType alias from entity components - Part 1 (#48467) 2021-03-29 13:24:36 -10:00
Franck Nijhof bb9da22a84
Clean up superfluous integration setup - part 3 (#48484) 2021-03-29 13:23:44 -10:00
Franck Nijhof 6ec3234ccc
Clean up superfluous integration setup - part 2 (#48478) 2021-03-29 13:23:07 -10:00
Franck Nijhof 8393a215e9
Clean up superfluous integration setup - part 1 (#48476) 2021-03-29 13:22:33 -10:00
J. Nick Koston a851bff95a
Create async_config_entry_first_refresh to reduce coordinator boilerplate (#48451) 2021-03-29 12:51:39 -10:00
J. Nick Koston 569c536a8e
Bump aiodiscover to 1.3.0 to improve performance (#48482) 2021-03-30 00:37:38 +02:00
Erik Montnemery fe4ca18881
Refactor fan device triggers to use ToggleEntity triggers (#48321) 2021-03-30 00:09:41 +02:00
Erik Montnemery 8ad3c65645
Allow MQTT entities to be disabled by default (#48284)
* Allow MQTT entities to be disabled by default

* Tweak
2021-03-30 00:09:14 +02:00
Franck Nijhof 0805467c47
Clean up icons & device classes for Toon (#48471) 2021-03-29 14:17:25 -07:00
Erik Montnemery 7534b54e4e
Merge condition and action traces (#48461) 2021-03-29 14:06:49 -07:00
Erik Montnemery c459789c09
Add 'for' to cover device triggers (#48324) 2021-03-29 13:57:30 -07:00
Franck Nijhof 52475c108f
Make integration setup optional (#48381) 2021-03-29 13:53:47 -07:00
Raman Gupta dda9f957b6
Bump zwave-js-server-python to 0.23.0 to support zwave-js 7 (#48094)
* Bump zwave-js-server-python to 0.23.0 and update integration to support schema changes

* refactor notification evenets a bit

* fix tests and bug fixes

* additional changes due to new PR

* add command class and command name

* use new event names so we can retain event property names

* handle command status being returned from async_set_config_parameter

* bump dependency version

* adjust log message to be consistent

* disable pylint warning

* Update homeassistant/components/zwave_js/services.py

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

* add test for awake node

* switch async_get_registry to async_get

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-29 16:28:55 -04:00
Bram Kragten cf6352e93c
Add screenshot to manifest (#48475) 2021-03-29 13:13:42 -07:00
Jan Bouwhuis d8a4cf63f4
Command template support for MQTT fan (#48413)
* Command template support

* Fix typo in abbreviations

* Update homeassistant/components/mqtt/fan.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Fix initialize templates

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-03-29 20:41:51 +02:00
Bram Kragten 03b7b1305c
Cloud: Expose if google is registered in status + check on login (#48260)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-29 19:26:51 +02:00
Paulus Schoutsen 022f56f54d
Allow specifying template entities based on triggers (#48169)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-29 09:57:51 -07:00
David McClosky f815ebe9cd
Fix unmute bug in vlc_telnet (#48441)
If volume was muted and media_player.volume_up is fired, VLC would still
show up as muted.

PR extracted from #44776.
2021-03-29 18:23:26 +02:00
Franck Nijhof 81ae0ee451
Add support for Selectors in Script service fields (#48469) 2021-03-29 18:05:45 +02:00
J. Nick Koston 1fb9008488
Include platform only integrations in the manifest list api (#48269) 2021-03-29 12:51:48 +02:00
Pim e2d3c0ea8f
Don't write 0 to next modbus register (#48378) 2021-03-29 12:45:44 +02:00
J. Nick Koston 564688af25
Fix template fan default speed count (#48389)
* Fix template fan default speed count

The default speed count was defaulting to 3 when percentage
was implemented instead of the documented value of 100

* Increase coverage

* remove unreachable code
2021-03-29 09:33:56 +02:00
J. Nick Koston 7063306cd8
Bump aiodiscover to 1.2.0 in for dhcp (#48456)
- Additional optimizations
2021-03-29 09:17:30 +02:00
J. Nick Koston 2796a58ead
Speed up bond setup with gather (#48454) 2021-03-29 08:58:48 +02:00
Erik Montnemery 14ef0531f0
Address review comments from trace refactoring PRs (#48288) 2021-03-29 08:09:14 +02:00
Paulus Schoutsen ee81869c05 Bump frontend to 20210328.0 2021-03-29 03:14:29 +00:00
HomeAssistant Azure 357dedf5ef [ci skip] Translation update 2021-03-29 00:04:31 +00:00
SukramJ cc38db6a89
Remove myself as codeowner of HomematicIP Cloud (#48437) 2021-03-28 19:18:59 -04:00
J. Nick Koston 47156151ab
Bump aiodiscover to 1.1.2 for dhcp (#48445) 2021-03-28 13:12:31 -10:00
J. Nick Koston a7d0fc2f86
Bump HAP-python to 3.4.1 for homekit (#48444) 2021-03-28 11:57:39 -10:00
Raman Gupta 08db248983
Fallback to current temperature unit for zwave_js climate (#48347)
* Fallback to current temperature unit for zwave_js climate

* don't use unit for N/A setpoint

* update comment

* add tests
2021-03-28 22:18:17 +02:00
J. Nick Koston 2ff94c8ed9
Add additional data source to dhcp (#48430) 2021-03-28 09:47:28 -10:00
David McClosky 23c7c4c977
Fallback to filename for title in vlc_telnet (#48438)
PR extracted from #44776.
2021-03-28 19:39:36 +02:00
David McClosky 48c0cfb25c
Detect when media position is stale in vlc_telnet (#48434)
PR extracted from #44776.
2021-03-28 18:19:05 +02:00
Robert Delpeut 4487565232
Add dsmr monthly and yearly totals (#48253)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-28 16:37:27 +02:00
David McClosky 70e3fc430c
Fix bug in vlc_telnet seeking (#48425)
Seems the code assumed a different `vlc_telnet` API.

Note that this doesn't address issues in `update()`, which will be
handled in a different PR.

PR extracted from #44776.
2021-03-28 11:58:11 +02:00
J. Nick Koston 958c4764f7
Handle routers that convert hostnames to lowercase in dhcp (#48429)
Some routers will lowercase all the hostnames. Since we
already lowercase hostnames for matching purposes, we now
pass the lowercased hostname to the integration.

Currently only roomba cared about this, and has been adjusted.
2021-03-28 11:23:06 +02:00
HomeAssistant Azure ce3e00d018 [ci skip] Translation update 2021-03-28 00:05:04 +00:00
Unai 0706ae70dc
Simplify maxcube integration (#48403)
* Simplify maxcube integration

Device objects returned by maxcube-api dependency are stable, so
we do not need to resolve from the device address every time.

Also, refactor and unify how maxcube integration sets temperature & mode.

* Raise ValueError if missing parameters for set_temperature method

Raise a ValueError exception If set_temperature does not receive
a temperature parameter.

Also, document properly _set_target method.

* Use Type | None instead of Optional[Type] annotation

* Protect set_hvac_mode and set_preset_mode from unsupported parameters
2021-03-28 00:21:20 +01:00
jan iversen ffdfc521b9
Allow discovery configuration of modbus platforms (#46591)
* Change modbus configuration to new style.

The old (frozen) configuration is still supported, but when detected a big
warning is issued that it will soon be removed. This allows users to change
their configuration at their pace.

Clean configuration SCHEMAs and move common modbus parts
to MODBUS_SCHEMA (renamed from BASE_SCHEMA).

Add BASE_COMPONENT_SCHEMA to ensure common configuration of components.
All component define e.g. NAME, move these to a common schema.
change components (binary_sensor, sensor, switch) to new config

Add test set for modbus itself (old config and discovery_info).
Add test of devices discovery_info configuration

* Update discovery_info configuration for binary_sensor.

* Update discovery_info configuration for sensor.

* Update discovery_info configuration for switch.

* Review comments.

* update due to change in core

* flake8 problem.

* Correct log message.

* add should_poll property.

* Fix polling for Modbus binary sensor

* Fix polling for Modbus sensor

* Fix polling for Modbus switch

* Fix switch.

* Fix pytest errors.

* Update homeassistant/components/modbus/binary_sensor.py

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

* Update homeassistant/components/modbus/binary_sensor.py

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

* Update homeassistant/components/modbus/modbus.py

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

* Update homeassistant/components/modbus/sensor.py

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

* Update homeassistant/components/modbus/sensor.py

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

* Update homeassistant/components/modbus/sensor.py

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

* Update homeassistant/components/modbus/switch.py

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

* Update homeassistant/components/modbus/switch.py

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

* Update homeassistant/components/modbus/switch.py

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

* ToogleEntity -> SwitchEntity and add abastract

* Update homeassistant/components/modbus/switch.py

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

* Update tests/components/modbus/test_init.py

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

* removed if/else in test.

* Remove other if.

Co-authored-by: Vladimir Zahradnik <vladimir@zahradnik.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-27 22:48:06 +01:00
Álvaro Fernández Rojas 23d7330a2f
Discard outdated data reported by AEMET stations (#48417)
* aemet: achieve 100% test coverage

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: discard outdated station data

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: fix AemetSensor/AemetForecastSensor inheritance

AbstractAemetSensor already inherits SensorEntity.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-03-27 22:33:24 +01:00
Matthias Alphart 051f29f9b6
Remove KNX type alias for homeassistant.core types (#48422) 2021-03-27 22:20:11 +01:00
David F. Mulcahey 3aa2591b0a
Bump ZHA quirks to 0.0.55 (#48418)
* bump quirks version

* call new setup method in quirks
2021-03-27 15:59:31 -04:00
J. Nick Koston 35a5f110bd
Update mac address in broadlink test to match mocked device (#48415)
* Update mac address in broadlink test to match mocked device

* Update tests/components/broadlink/test_config_flow.py
2021-03-27 20:47:47 +01:00
Jesse Campbell 67791fa4df
ZHA lock code services and events (#47208)
* ZHA lock code services and events

* ZHA Locks: A few more services, use the library functions

* Catch exception when command id is not in command list

* Add tests for lock code services

* Add tests for enable/disable

* Better document code slot ID shifting

* Simplify cluster commands
2021-03-27 15:23:40 -04:00
Christian Soltenborn 955804bf58
Add template support for remaining attributes of weather entity (#47736)
* added template support for remaining attributes of weather entity

* wind bearing is now angle (number)
2021-03-27 18:53:35 +00:00
J. Nick Koston 388815b81a
Add broadlink dhcp discovery (#48408) 2021-03-27 08:40:19 -10:00
Raman Gupta fbc3f97097
Add support for selective config parameter entity discovery (#48336)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-27 18:14:06 +01:00
conflipper 56abe25c1f
Add Ambient Station PM25 indoor sensor (#47970) 2021-03-27 18:01:33 +01:00
Jonathan Keslin 11596afdfc
Address late review of vesync light (#48130) 2021-03-27 17:50:35 +01:00
J. Nick Koston 938a4cc1b6
Bump yalexs to 1.1.9 (#48383)
* Bump yalexs to workaround pubnub reconnect bug

* bump to 1.1.9 to loosen version requirement for pubnub
2021-03-27 15:55:18 +01:00
Franck Nijhof cebcd7a202
Fix entity service calls on WLED master light (#48402) 2021-03-27 13:04:30 +01:00
Franck Nijhof 02182bfa86
Fix ability to ignore AdGuard hassio discovery (#48401) 2021-03-27 12:59:22 +01:00
Franck Nijhof 0d595a2845
Merge of nested IF-IF cases - E-G (#48367) 2021-03-27 12:39:37 +01:00
Franck Nijhof 786023fce4
Merge of nested IF-IF cases - H-J (#48368) 2021-03-27 11:30:29 +01:00
Franck Nijhof db355f9b23
Merge of nested IF-IF cases - A-C (#48365) 2021-03-27 10:58:38 +01:00
Franck Nijhof 8d5ce53098
Merge of nested IF-IF cases - S-W (#48372) 2021-03-27 10:54:59 +01:00
Franck Nijhof 3aed84560f
Merge of nested IF-IF cases - O-R (#48371) 2021-03-27 10:38:57 +01:00
Ville Skyttä 3cd52b695d
Upgrade flake8 and dependencies, enable flake8-noqa (#48393)
* Upgrade flake8 to 3.9.0

https://flake8.pycqa.org/en/latest/release-notes/3.9.0.html

* Upgrade pydocstyle to 6.0.0

https://www.pydocstyle.org/en/latest/release_notes.html#september-13th-2020
https://www.pydocstyle.org/en/latest/release_notes.html#march-18th-2021

* Upgrade flake8-docstrings to 1.6.0, enable flake8-noqa

https://gitlab.com/pycqa/flake8-docstrings/-/blob/1.6.0/HISTORY.rst
https://github.com/plinss/flake8-noqa/issues/1

* Upgrade/pin pyflakes to 2.3.1

https://github.com/PyCQA/pyflakes/blob/2.3.1/NEWS.rst

* Pin pycodestyle to 2.7.0
2021-03-27 10:22:11 +01:00
Franck Nijhof 86212db71d
Merge of nested IF-IF cases - K-N (#48370) 2021-03-27 10:03:15 +01:00
J. Nick Koston 9737480742
Lazy load broadlink storage (#48391)
With many broadlink devices, the storage load overwhelmed the
executor at startup. Delay loading storage until it is needed.
2021-03-27 09:32:30 +01:00
Franck Nijhof 387e166447
Remove HomeAssistantType alias from AdGuard integration (#48377) 2021-03-26 18:52:01 -10:00
HomeAssistant Azure 99874cd993 [ci skip] Translation update 2021-03-27 00:03:21 +00:00
Erik Montnemery 374dcde487
Return config entry details after creation (#48316) 2021-03-26 18:31:29 +01:00
Erik Montnemery c6a20d0fc1
Improve traces for nested script runs (#48366) 2021-03-26 10:14:01 -07:00
Franck Nijhof f4cc4a0896
Merge of nested IF-IF cases - X-Z (#48373) 2021-03-26 17:08:05 +01:00
Matthias Alphart 8fa935234a
Type check KNX integration __init__ and knx_entity (#48044) 2021-03-26 16:10:55 +01:00
Tobias Sauerwein 3bc6497cbd
Add Netatmo schedule event handling (#46573)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-26 15:08:41 +01:00
mptei 02b0a4ca1f
Xknx unneeded expose (#48311) 2021-03-26 14:51:36 +01:00
J. Nick Koston ae8afb69e7
Improve august reconnect logic when service become unreachable (#48349)
This is a different error than internet down.
2021-03-26 13:47:32 +01:00
D3v01dZA 8f40c87069
Bump snapcast to 2.1.2 (#48343) 2021-03-26 12:03:38 +01:00
Erik Montnemery 4fbc3da196
Validate device action schemas once (#48351) 2021-03-26 08:46:26 +01:00
Jan Bouwhuis 5b17aaf9d5
Percentage and preset mode support for MQTT fan (#47944)
* git push --all origin

* Fix percentage to ordered list conversion

* Tests for mqtt fan and fixes

* Improve tests and error handling base config

* Additional tests

* Tests completed, small fixes

* Allow preset mode and percentages combined

* Remove raise in setup and update tests

* Alignment with fan entity mode

* Fix pylint for len-as-condition

* Remove python binary cache file from PR

* Additional tests on async_turn_on and fix

* Added comments for deprecation of speeds

* Schema checks before init

* Optimize pre schema checks

* Correct schema checks

* Update homeassistant/components/mqtt/abbreviations.py

Comment speeds for mqtt fan are deprecated not needed here

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Comment speeds for mqtt fan are deprecated not needed here

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Comment speeds for mqtt fan are deprecated not needed here

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Comment speeds for mqtt fan are deprecated not needed here

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Comment speeds for mqtt fan are deprecated not needed here

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Warnings for exceptions - testing speed_range

* Update homeassistant/components/mqtt/abbreviations.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Update homeassistant/components/mqtt/fan.py

* Save with black

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-03-26 08:37:47 +01:00
Franck Nijhof da2fecb312
Pre-calculate Verisure alarm states (#48340)
* Pre-calculate Verisure alarm states

* Correct super call
2021-03-26 08:21:11 +01:00
Erik Montnemery 72281f4718
Validate device trigger schemas once (#48319) 2021-03-26 08:09:21 +01:00
Matthias Alphart de1fa706a0
xknx 0.17.4 (#48350) 2021-03-26 08:07:57 +01:00
Simone Chemelli 2b24f8b735
Remove timedate manipulation from Neato attributes (#48150)
* Remove timedate manipulation to get timezone back

* Updated camera to new format
2021-03-26 05:11:08 +01:00
Garrett a019f076c0
Subaru integration code quality changes (#48193)
* Apply changes from code review

* Update sensor tests

* Fix pylint error

* Apply suggestions from code review

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

Co-authored-by: Brandon Rothweiler <brandonrothweiler@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-26 04:24:37 +01:00
Franck Nijhof 24dee01599
Use async with in Acmeda config flow (#48291) 2021-03-26 04:21:27 +01:00
Franck Nijhof b90c620c5e
Address huisbaasje review comments (#48313)
* Address huisbaasje review comments

* Update homeassistant/components/huisbaasje/config_flow.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-26 04:18:46 +01:00
starkillerOG b4d39d517f
Update in 1 minute on unavailable Motion blinds (#47800)
* if unavailable request update in 1 minute

* fix styling

* improve changing update interval

* remove unused import

* try to fix

* remove unused pass

* add const

* fix missing timedelta

* update to motionblinds 0.4.10

* improve update coordinator

* fix linting errors

* remove unused import

* move update functions within the DataUpdateCoordinator

* fix white space
2021-03-25 20:06:40 -07:00
HomeAssistant Azure d5afd0afb3 [ci skip] Translation update 2021-03-26 00:04:15 +00:00