Commit Graph

31237 Commits

Author SHA1 Message Date
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
Franck Nijhof
2656e9b0f9 Upgrade colorlog to 4.5.0 (#42965) 2020-11-08 14:05:55 +01:00
Malte Franken
a0d1f4a6fb Bump aio_georss_gdacs to v0.4 (#42957) 2020-11-08 13:13:09 +01:00
springstan
c029490e15 Add not internet accessible to base strings for config flows (#42478)
* Add not internet accessible to base strings for config flows

* Add prefix webhook_ to json key

* Update reference value to new key
2020-11-08 08:55:18 +01:00
springstan
9ce971ca30 Use common strings in locative config flow (#42481) 2020-11-07 23:03:40 -06:00
absurdist81
d384ca0e69 Add icons for OBiTALK status and reboot sensors (#42883) 2020-11-07 21:00:21 -06:00
Aaron Bach
8dbddd874f Migrate Flu Near You to DataUpdateCoordinator (#42594)
* Migrate Flu Near You to DataUpdateCoordinator

* Prefer partial over lambda

* Remove overlap with CoordinatorEntity
2020-11-07 20:45:14 -06: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
HomeAssistant Azure
eebf0ef336 [ci skip] Translation update 2020-11-08 00:04:05 +00:00
Randall Wessel
239b3f059b Change air pressure unit to hPa in OpenWeatherMap (#42801) 2020-11-07 20:29:57 +01:00
Pawel
df38c59dc8 Add config flow to epson and fix timeouts (#39697) 2020-11-07 18:15:29 +01:00
Simone Chemelli
12a891cc0a Bump aioshelly to 0.5.1 (#42940) 2020-11-07 18:10:14 +01:00
J. Nick Koston
b47a5449e3 Ensure storage task loads are always garbage collected (#42917) 2020-11-07 06:54:56 -10:00
J. Nick Koston
3ec7258c21 Ensure instances of async_add_entities can be garbage collected (#42919) 2020-11-07 06:54:20 -10:00
Erik Montnemery
7f640c4a2e Generate random MQTT client ID (#42934)
* Generate random MQTT client ID

* Add comment

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-07 16:27:09 +01:00
Franck Nijhof
9d650245ee Upgrade pytest to 6.1.2 (#40662)
* Upgrade pytest to 6.1.0

* Upgrade pytest to 6.1.2
2020-11-07 12:39:37 +01:00
AlexSchmitz222
d77d7b2217 Change fritzbox title for better product family distinction (#42432) 2020-11-07 11:13:16 +01:00
Daniel Hjelseth Høyer
ce5994d9fe Upgrade Tibber library to 0.16.0 (#42929)
Signed-off-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
2020-11-07 10:53:19 +01:00
HomeAssistant Azure
57c6bb96f4 [ci skip] Translation update 2020-11-07 00:04:02 +00:00
Alexei Chetroi
4b7829d777 Allow ZHA coordinator binding/unbinding (#42854)
* Allow coordinator ZDO binding/unbinding operations

* Let coordinator to provide endpoint it

* Refactor ClusterPair to a dataclass

* Rename ClusterPair
2020-11-06 17:33:13 -05:00
shbatm
121872c546 Fix dimming for ISY994 Z-Wave devices using percent instead of 8-bit brightness values (#42915) 2020-11-06 10:07:37 -10:00
Sören Oldag
bf9f3e1997 Bump pwmled to v1.6.7 (#42903) 2020-11-06 19:27:01 +01:00
Guido Schmitz
c7b2147e55 Handle offline gateways in devolo Home Control (#42897) 2020-11-06 12:49:47 +01:00
Paulus Schoutsen
15da7b3ca6 Cloud: Recover when internet is not available yet (#42877) 2020-11-06 12:12:18 +01:00
Franck Nijhof
fd04b96132 Upgrade hadolint to 0.18.2 (#42087)
* Upgrade hadolint to 0.18.1

* Upgrade hadolint to 0.18.2
2020-11-06 11:01:51 +01:00
Aaron Bach
bba7c15d79 Migrate RainMachine to DataUpdateCoordinator (#42530) 2020-11-06 10:58:50 +01:00
Sören Oldag
4e614e0f2c Remove unneeded state restoration of the physical device in rpi_gpio_pwm integration (#42804)
* Add @soldag to code owners of rpi_gpio_pwm platform

* Remove unneeded state restoration of the physical device in rpi_gpio_pwm integration
2020-11-06 10:58:37 +01:00
Manuel de la Rosa
2d428210e4 Add Spanish US voice to amazon polly (#42891)
* Update tts.py

* Update tts.py
2020-11-06 10:49:00 +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
J. Nick Koston
3c84c7ccf0 Fix memory leak in websocket_api (#42894)
* Fix memory leak in websocket_api

Each named logger lives forever

* tweak
2020-11-06 09:27:41 +01:00
Steven Barth
1e87ac7eda Bump pyvlx to 0.2.18 (#42895) 2020-11-06 09:19:27 +01:00
HomeAssistant Azure
e972686a13 [ci skip] Translation update 2020-11-06 00:04:57 +00:00
Simone Chemelli
05dc457955 Handle Shelly light domain for relay switches ( fw >=1.9 ) (#42508)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-05 18:38:53 +01:00
Adam Ernst
06a7fc491e Tweak wording of Rachio options (#42849)
This is a bit clearer to my eyes.
2020-11-05 07:27:03 -10: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
rikroe
ac06e871e4 Bump bimmer_connected to 0.7.12 (#42875)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2020-11-05 16:32:02 +01:00
Joakim Sørensen
a199d7af59 Move to Launch Library 2 (#42723)
* Move to Launch Library 2

* isort

* Apply suggestions from code review

* Add const to .coveragerc
2020-11-05 15:42:12 +01:00
Jeff Irion
cd675f9175 Bump androidtv to 0.0.54 (#42861) 2020-11-05 15:25:14 +01:00
Sean Dague
2a576e979b Add unique_id property to ARWN sensors (#42570)
* Add unique_id property

After HA 0.111 the ARWN platform's lack of a unique_id causes the
sensors to fail to register correctly. The unique_id for this is just
a slug which is the mqtt topic that it's inbound on.

Also change the logging to INFO for data received to make it fit
better in the logging levels and show up during '-v' runs.

* use topic as unique_id

fix logging

* fix final topic location

* fix black

* address the fact that some topics have more than one sensor

This splits up rain and wind sensors to unique topics

* address review comments
2020-11-05 14:55:53 +01:00
edomat
50761eb4e4 Distinguish Shutters and Awnings in Google Assistant (#42782)
* Distinguish Shutters and Awnings.

* Remove trailing whitespace
2020-11-05 14:55:48 +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
cgtobi
f16ccae78b Fix Netatmo public weather sensor bug (#42858) 2020-11-05 14:16:51 +01:00
Jeff Sloyer
7ed409d681 clarify range of max and min for intensity (#42853) 2020-11-05 10:33:40 +01:00
David Bonnes
fd01636058 Fix evohome coroutine not allowed to be passed to HassJob (#42730) 2020-11-05 10:17:48 +01:00
Adam Ernst
623f2b6f9c Tweak Shelly message to be clearer (#42862)
Not all Shelly devices are battery-powered.
2020-11-05 10:09:22 +01:00