Commit graph

6247 commits

Author SHA1 Message Date
Maciej Bieniek
2e50c1be8e
Add nearest method to get data for Airly integration ()
* Add nearest method

* Add tests

* Move urls to consts

* Simplify config flow

* Fix tests

* Update tests

* Use in instead get

* Fix AirlyError message in tests

* Fix manual update entity tests

* Clean up tests

* Fix after rebase

* Increase test coverage

* Format the code

* Fix after rebase
2021-01-04 23:14:45 +01:00
Shay Levy
76537305e2
Add logbook and device trigger platforms to Shelly ()
* Add logbook and device trigger platforms to Shelly

Add `logbook` platform for describing “shelly.click” event
Add `device_trigger` platform for adding automation based on click events:

Example of logbook event:
Shelly 'single' click event for Test I3 channel 3 was fired.
(Test I3 is the name of the device)

Example of automation triggers:
First button triple clicked
First button long clicked and then single clicked
First button double clicked
First button long clicked
First button single clicked and then long clicked
First button single clicked
Second button triple clicked
..
Second button single clicked

* Fix codespell

* Remove pylint added for debug

* Add tests

* Rebase

* Fix Rebase & Apply PR review suggestions

Fix tests after rebasing
Use `INPUTS_EVENTS_DICT` for input triggers
Apply PR suggestions
2021-01-04 23:10:42 +01:00
JeromeHXP
de780c6d35
Add Ondilo ico integration ()
* First implementationof Ondilo component support

* Update manifest toadd pypi pkg dependency

* Update entities name and corrected refresh issue

* Changed percentage unit name

* Corrected merge issues

* Updated coveragerc

* cleaned up code and corrected config flow tests

* Code cleanup and added test for exisitng entry

* Changes following PR comments:
- Inherit CoordinatorEntity instead of Entity
- Merged pools blocking calls into one
- Renamed devices vars to sensors
- Check supported sensor types
- Stop relying on array index position for pools
- Stop relying on attribute position in dict for sensors

* Corrected unit test

* Reformat sensor type check
2021-01-04 08:09:01 -08:00
Allen Porter
c92353088c
Fix Fan support in nest climate by adding HVAC_MODE_FAN_ONLY support ()
* Add HVAC_MODE_FAN_ONLY to nest climate

* Remove unreachable code

* Fix HVAC_FAV_ONLY bug; must also turn off hvac
2021-01-04 16:43:41 +01:00
Joakim Plate
c1027cace6
Add device entry id to events ()
* Add device entry id to events

* Only add device id if device is known for now
2021-01-04 15:31:10 +01:00
On Freund
e9f7e67f4c
Try to fix flaky Risco test () 2021-01-04 15:23:47 +01:00
Simone Chemelli
f07bf6a88e
Cleanup timeouts values for Shelly ()
* Updated timeouts

* Small cleanup

* Fix + small cleanup of test code
2021-01-04 14:04:40 +01:00
Erik Montnemery
34bd70aee6
Fix race when handling MQTT discovery messages ()
* Fix race when handling MQTT discovery messages

* Lint

* retrigger checks
2021-01-04 12:28:17 +01:00
Ville Skyttä
43474762b2
Drop remaining Python < 3.8 support ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-04 11:47:29 +01:00
Álvaro Fernández Rojas
ec926105a0
Bump PyTado to 0.10.0 ()
* Bump PyTado to v0.10.0

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

* Tado: switch to getDeviceInfo

This function has been introduced in version 0.10.0 of PyTado.

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

* Tado: update tests

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-01-04 03:53:15 +01:00
dzukero
2ed7b90027
Add RFXtrx Rfy venetian blinds tilt control ()
* Add tilt control for RFXtrx Rfy venetian blinds

* Update Rfy cover test

* Update the required version of pyRFXtrx

* Update required pyRFXtrx version to 0.26.1

* Revert "Update required pyRFXtrx version to 0.26.1"

This reverts commit d54f1645d5.

* Revert "Update the required version of pyRFXtrx"

This reverts commit ac36d65326.

* Update required version of pyRFXtrx to 0.26.1

* @dzukero
Update required version of pyRFXtrx to 0.26.1

* Make requested changes from review

* Fix isort

* Remove set tilt position support

* Remove set tilt position support per review
2021-01-03 12:59:22 +01:00
Joakim Plate
3de0610909
Support google assistant stopping for assumed state covers ()
* Support stopping for assumed state covers

* Adjust black formatting
2021-01-02 23:01:20 +01:00
Álvaro Fernández Rojas
067f2d0098
Add tado zone binary sensors ()
These should be binary sensors.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-01-02 13:35:59 +01:00
Will Hughes
a6e474c7c9
Update surepy to v0.4.0 ()
* Update surepy to v0.4.0

* Clarify pylint disable

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-02 03:52:33 +01:00
Allen Porter
321c0a87ae
Resolve nest pub/sub subscriber token refresh issues () 2021-01-02 01:51:01 +01:00
Franck Nijhof
508d33a220
Remove deprecated PTVSD integration () 2021-01-01 23:36:15 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
2b0556520b
Catch Shelly zeroconf types with uppercase too ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-01 20:54:43 +01:00
Sian
52e1aad008
Correct Dyson climate fan auto mode ()
Co-authored-by: Justin Gauthier <justin@justin-tech.com>
2021-01-01 16:06:36 +01:00
Clifford Roche
f0e96f739b
Add turn_on and turn_off to gree climate component () 2021-01-01 13:58:38 +01:00
Raman Gupta
b651f63ef0
Suppress vizio logging API call failures to prevent no-op logs () 2021-01-01 13:35:05 +01:00
Allen Porter
051f6c0e72
Increase test coverage for Nest SDM integration () 2021-01-01 13:31:18 +01:00
J. Nick Koston
94825b3e15
Do not restore unavailable state for august locks () 2021-01-01 12:44:53 +01:00
Allen Porter
f1dff973dc
Fix broken test test_auto_purge in recorder ()
* Fix failing test due to edge-of-2021 bug

* Rewrite test_auto_purge to make the intent more clear
2020-12-31 12:04:12 -10:00
Allen Porter
fe9a254017
Fix legacy nest api binary_sensor initialization () 2020-12-31 19:22:24 +01:00
Ville Skyttä
1c8fbc7e6a
Upgrade codespell to 2.0.0 ()
* Upgrade codespell to 2.0.0

* Fix newly found spelling errors
2020-12-31 19:14:07 +01:00
Paulus Schoutsen
c7bf7b32a2
Zeroconf lowercase () 2020-12-31 01:06:26 +01:00
J.P. Krauss
e37bb51320
Add AirNow Integration () 2020-12-30 20:25:57 +01:00
zewelor
16ddbb95f4
Add yeelight service to enable disable music mode ()
* Add service to enable / disable music mode

* Black reformat

* Update test

* Fix tests

* Revert consts cleanup

* Use entity method as service call

* Use ATTR for service call

* Sort

* Add tests

* Fix isort

* Fix print

* Black
2020-12-30 17:00:28 +01:00
Allen Porter
baacf2cd7d
Publish timestamps in nest events () 2020-12-30 10:23:48 +01:00
Chris Talkington
12aa537eb9
Support homekit discovery for roku ()
* support homekit discovery for roku

* Update config_flow.py

* Update config_flow.py

* Update test_config_flow.py

* Update __init__.py

* Update __init__.py

* Update strings.json

* Update manifest.json

* Update __init__.py

* Update test_config_flow.py

* Update __init__.py

* Update manifest.json

* Update config_flow.py

* Update config_flow.py

* Update __init__.py

* Update test_config_flow.py

* Update __init__.py

* Update manifest.json

* Update __init__.py

* Update zeroconf.py

* Update config_flow.py

* Update test_config_flow.py

* Update config_flow.py

* Update test_config_flow.py

* Update __init__.py

* Update config_flow.py

* Update test_config_flow.py

* Update manifest.json

* Update zeroconf.py
2020-12-29 20:43:02 -06:00
J. Nick Koston
035f9412ba
Fix template triggers from time events ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-12-29 23:16:39 +01:00
starkillerOG
e287160f72
Add discovery to Motion Blinds ()
* Add discovery to Motion Blinds

* Update test_config_flow.py

* ommit keys()

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* use _ to indicate private variables

* disregard changes to en.json

* remove unused errors

* clearify multicast=None

* improve tests

* make self._key a local variable

* fix styling

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2020-12-29 11:13:31 -08:00
J. Nick Koston
4905be0c40
Move HomeKit autostart to advanced options flow () 2020-12-29 13:54:24 +01:00
rikroe
e5f31665b1
Add Config Flow to bmw_connected_drive ()
* Add Config Flow to bmw_connected_drive

* Fix checks for bmw_connected_drive

* Adjust code as requested

* Clean .coveragerc after merge

* Use references for config flow

* Fix execute_service check against allowed accounts

* Adjust translation as username can be email or phone no

* Add BMWConnectedDriveBaseEntity mixin, remove unnecessary type casts

* Use BaseEntity correctly, fix pylint error

* Bump bimmer_connected to 0.7.13

* Adjustments for review

* Fix pylint

* Fix loading notify, move vin to entity attrs

* Remove vin from device registry

* Remove commented-out code

* Show tracker warning only if vehicle (currently) doesn't support location

* Remove unnecessary return values & other small adjustments

* Move original hass_config to own domain in hass.data

* Move entries to separate dict in hass.data

* Remove invalid_auth exception handling & test as it cannot happen

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2020-12-29 11:06:12 +01:00
mvn23
0d8ed9061c
Update pyotgw to 1.0b1 ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-12-28 23:04:17 +01:00
Clifford Roche
ee97023053
Add support for Gree device light panels () 2020-12-28 22:32:04 +01:00
Erik Montnemery
ed576edde7
Fix Tasmota device triggers () 2020-12-28 14:41:39 +01:00
Allen Porter
71af0fac16
Improve nest setup error handling ()
* Improve error handling user experience

This is meant to make the nest integration quieter.  Exceptions are handled with a single log error message.


Co-authored-by: j-stienstra <65826735+j-stienstra@users.noreply.github.com>
2020-12-27 20:30:51 -08:00
Álvaro Fernández Rojas
6d043f2ca1
Tado: add full list of devices ()
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2020-12-27 16:36:35 +01:00
Allen Porter
51b88337ca
Simplify nest event handling ()
* Simplify nest event handling

Use device specific update callbacks rather than a global callback.
The motivation is to prepare for a follow up change that will store
camera specific event tokens on the camera itself, so that a service
can later fetch event specific image snapshots, which would be difficult
to send across the event bus.

* Increase nest camera test coverage

* Remove unnecessary device updates for nest cameras

* Remove unused imports

* Fix device id check to look at returned entry

* Remove unused imports after rebase

* Partial revert of nest event simplification

* Push more update logic into the nest library

* Revert nest device_info changes

* Revert test changes to restore global update behavior

* Bump nest library version to support new callback interfaces
2020-12-27 09:49:22 +01:00
Rob Bierbooms
9531b08f2a
Add explicit support for Luxembourg Smarty meter in dsmr integration ()
* Add support for Luxembourg Smarty meter

* Add config flow test

* Add sensor tests
2020-12-27 09:39:36 +01:00
Tim van Cann
1f27fb4644
Fully remove Avri integration ()
* Fully remove Avri integration

* Remove avri from .coveragerc
2020-12-27 09:30:20 +01:00
Eric Severance
d912e91e81
Periodically attempt to discover new wemo devices ()
* Periodically attempt to discover new wemo devices

* Set self._stop=None after stopping the periodic discovery task

* Use the async_fire_time_changed test helper to simplify test_discovery

* Stop the pywemo registry outside of the async loop

* Add a comment describing why async_fire_time_changed is used
2020-12-24 12:25:14 +01:00
J. Nick Koston
677fc6e2bb
Translate siri requests to turn on thermostats to valid targets ()
Siri always requests auto mode even when the device does not
support auto which results in the thermostat failing to turn
on as success is assumed.  We now determine the heat cool
target mode based on the current temp, target temp, and
supported modes to ensure the thermostat will reach the
requested target temp.
2020-12-23 17:23:26 -10:00
Diogo Gomes
2d131823ce
Fix filter sensor None state ()
Co-authored-by: Franck Nijhof <frenck@frenck.dev>
2020-12-24 02:24:11 +01:00
starkillerOG
82f9de31b1
Motion Blinds upgrade to local push ()
* Motion Blinds upgrade to local push
2020-12-23 15:15:11 -08:00
Allen Porter
24ccdb55bb
Move Legacy Works With Nest integration to subdirectory ()
* Move Legacy Works With Nest integration to subdirectory

Motivation is to streamline the actively developed integration e.g. make code coverage easier to reason about and simplify __init__.py
2020-12-22 12:42:37 -08:00
Joakim Plate
56b3e0b52e
Support area on entities for google assistant ()
* Support area on entities

* Don't let registry area override config
2020-12-21 21:55:06 +01:00
Emily Mills
f89c682ea6
Cleanup and optimization for Zerproc ()
* Cleanup and optimization for Zerproc

* Remove unnecessary extra method

* Add debug log for exceptions on disconnect
2020-12-21 12:50:31 -06:00