Commit graph

8369 commits

Author SHA1 Message Date
Raman Gupta
1de0d20a76
Bump zwave-js-server-python to 0.25.1 ()
* Bump zwave-js-server-python to 0.25.1

* update fixtures
2021-05-26 12:37:24 +02:00
Erik Montnemery
789a14fc44
Add support for last_reset to MQTT sensor ()
* Add support for last_reset to MQTT sensor

* Update abbreviations

* Improve test coverage
2021-05-26 11:50:29 +02:00
Raj Laud
b3607343fc
Fix error in Squeezebox DHCP discovery flow ()
* Map data from dhcp to squeezebox discovery flow

* Add tests for squeezebox dhcp discovery
2021-05-26 10:30:15 +02:00
uvjustin
c6f108f7c3
Refactor stream to use bytes ()
* Refactor stream to use bytes
2021-05-26 16:19:09 +08:00
Maciej Bieniek
41a940f644
Add state class to Nettigo Air Monitor sensors () 2021-05-26 09:36:37 +02:00
ollo69
d5a9419fb7
Fix AsusWRT sensor test ()
* Fix AsusWRT sensor test

* Revert use of utcnow

* Add MockDevice class

* Proper initialize static member

* Added mock_device fixture
2021-05-26 09:19:30 +02:00
Raman Gupta
5f7964b54b
Add firmware updates support for zwave_js ()
* Add WS API support for zwave_js firmware updates

* move file to fixture

* review comments

* fix logic and test based on upstream changes

* handle failure scenario

* handle failure scenario

* fix tests and adjust message

* Update homeassistant/components/zwave_js/api.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* remove return from firmware upload view because client will raise an exception if not successful

* raise if user is not an admin

* raise bad request exception if firmware command fails

* incorporate 

* Add test for failed command

* add event name to messages

* change error to not found

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-26 02:57:00 -04:00
Erik Montnemery
154c849eac
Filter unsupported parameters from light service calls ()
* Filter unsupported parameters from light service calls

* Silence pylint

* Fix deconz tests

* Fix mqtt tests

* Fix scene tests

* Fix trådfri emulated CT

* Fix mqtt tests
2021-05-26 08:02:59 +02:00
J. Nick Koston
deb9135707
Handle clamped fan maxValue in homekit_controller () 2021-05-25 16:06:17 -05:00
Nathan Spencer
9ec0b0a8da
Fix for invalid value error when using UI editor for Litter-Robot's set_wait_time service () 2021-05-25 20:15:37 +02:00
Raman Gupta
58e37435b3
Make more max lengths constants and add additional MaxLengthExceeded checks ()
* Add more MaxLengthExceeded checks

* remove some validations to reduce performance impact

* check length of generated entity ID

* dont check entity ID twice and use single context id length constant

* fix test

* add missing test
2021-05-25 19:58:01 +02:00
jjlawren
fe75a1bb9d
Set Fahrenheit reporting precision to tenths for Homekit Controller climate entities () 2021-05-25 19:32:59 +02:00
jjlawren
1e86818f85
Add battery support for Sonos S1 speakers () 2021-05-25 18:39:31 +02:00
Matt Zimmerman
aa18ad2abf
Add service to snooze SmartTub reminders ()
* Add service to snooze SmartTub reminders

* minimum is 10 days

* 0->10 in services.yaml as well

* Update homeassistant/components/smarttub/services.yaml

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

* Update homeassistant/components/smarttub/services.yaml

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

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-25 18:37:00 +02:00
Aaron David Schneider
9bf6ea60db
Add Sonos alarm to sonos component ()
* add sonos_alarm

* bug fix for _update_device

* fix pylint and black and co

* small bug fix in speaker.available_alarms

* cleanup and add _LOGGER.debug statements, fix pylint

* fix pylint

* _alarm_id to alarm_id

* fixed rare bug due to raceconditions

* Part 2 of raceconditionfix

* address review suggestions

* readd check for not yet subscribed

* - platforms_ready fix
- add alarmClock to pytest mock

* fixture for ListAlarms

* cleanup mock and match UUID for test

* add simple tests for sonos_alarm

* extend test for attributes

* typhint fix

* typo

* use get_alarms() directly

* refactor available_alarms

* fix attributes

* some cleanup

* change logic of fetch_alarms_for_speaker and rename to update_alarms_for_speaker

* update_alarms_for_speaker is now a method

* Update homeassistant/components/sonos/switch.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Update homeassistant/components/sonos/speaker.py

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2021-05-25 11:32:25 -05:00
Paul Bottein
fb61ef500c
Add TV channel trait to google assistant () 2021-05-25 09:12:42 -07:00
Erik Montnemery
d2804433d3
Select onoff and brightness color modes last for light groups () 2021-05-25 08:49:24 -07:00
Raman Gupta
c0234df136
Remove device_registry fixture from zwave_js tests () 2021-05-25 08:48:21 -07:00
Raman Gupta
4875035ff8
Add zwave_js WS API commands for node ping and metadata () 2021-05-25 17:37:12 +02:00
Bram Kragten
26563e3ea4
Add statistics websocket endpoint ()
Co-authored-by: Erik <erik@montnemery.com>
2021-05-25 08:03:37 -07:00
Andrey Kupreychik
cbe4df1893
SSDP Discovery for NDMS2 routers ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-25 15:36:03 +02:00
Martin Hjelmare
9319fc6263
Update zwave_js stored add-on options ()
* Update zwave_js entry data if add-on data changed

* Fix tests

* Add test
2021-05-25 08:37:34 -04:00
Martin Hjelmare
bdb8cdf717
Fix zwave_js None color value () 2021-05-25 13:40:22 +02:00
Philip Allgaier
d8ff52e55b
Add support for custom themes to use dark mode () 2021-05-25 13:26:24 +02:00
Adrián Moreno
fe34f42aa5
Add new Meteoclimatic integration ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 13:11:48 +02:00
Franck Nijhof
c5383219f1
Remove stale debug statements from tests () 2021-05-25 11:52:20 +02:00
Xuefer
2a47805b4a
Close onvif device cleanly ()
* onvif: close device cleanly

Signed-off-by: Xuefer <xuefer@gmail.com>

* onvif: Too many nested blocks

Signed-off-by: Xuefer <xuefer@gmail.com>

* update tests to cover onvif config_flow

Signed-off-by: Xuefer <xuefer@gmail.com>
2021-05-24 15:27:40 -04:00
Maciej Bieniek
12e2c59a4c
Improve typing in DuneHD integration ()
* Improve typing

* One more typing fix

* Run hassfest

* Fix test

* Fix return from constructor

* Add missing Final

* Improve long string format

* Use bool for mute

* Remove unnecessary str type

* Fix host type

* Add missing Final

* Increase test coverage

* Suggested change

Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>

Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
2021-05-24 20:09:57 +01:00
Raman Gupta
ebf6e3d985
Add zwave_js WS API commands to replace and remove failed nodes ()
* Add zwave_js WS API commands to replace and remove failed nodes

* no need to manually add node to driver in test
2021-05-24 13:11:09 -04:00
Simone Chemelli
987e8ed5ed
Add consider_home option to Fritz device_tracker ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-24 09:54:57 -05:00
Nash Kaminski
2ae91bf0ea
Correct humidifier detection in venstar component and add tests ()
As of version 0.14, the venstar_colortouch lib always initializes hum_setpoint to None. When a thermostat actually reports a humidifier state, this value is replaced with the integer value of the setpoint. This changeset corrects the humidifier detection as well as adds basic test cases for the Venstar component.
2021-05-24 16:41:37 +02:00
jan iversen
c74e65ac2d
Streamline modbus test_init ()
* Streamline test_init.

* Review comments.

* Remove hub name.
2021-05-24 14:53:54 +02:00
jan iversen
1546dbbf25
Add restore temperature to modbus climate ()
* Add restore temperature to climate.

* please mypy.

* Review 2.
2021-05-24 14:03:44 +02:00
jacekpaszkowski
85495c08b0
Add support for effects, transition/brightness parameters to template light, min_mireds and max_mireds templates ()
* Add support for effects, transition/brightness parameters to template light, min_mireds and max_mireds templates

* code fixes

* min_mireds, max_mireds fixes

* test fixes

* more fixes

* format fix

* style fix

* _update_effect_list change

* style fix

* Fixes after review

* additional fixes

* duplicated lines removed

* fixes after CI run

* test fixes

* code and test fixes

* supports transition change, added test cases
2021-05-24 13:31:57 +02:00
hesselonline
c497c0eadd
Add wallbox integration ()
* Wallbox component added

* resolved mergeconflicts from upstream

* fixed an incorrect removal in CODEOWNERS file

* fixes for pullrequest automatic test

* clean up code after PR tests

* fixed strings.json

* fix config_flow error > wallbox

* fixed some formatting issues

* fix pylint warnings

* fixed error in number.py > set value

* pylint warnings fixed

* some more pylint fixes

* isort fixes

* fix unused_import pylint

* remove tests

* remove test requirements

* config flow test

* test errors resolved

* test file formatting

* isort on test file

* sensor test

* isort on test

* isort test const

* remove not working sensor test

* remove test const

* add switch, number and lock test

* docstrings for test classes

* sort test_number, create test_sensor

* additional tests

* fix test error

* reduced PR to 1 component

* newline in const

* ignore test coverage -> dependency on external device (wallbox)

* do not ignore config_flow

* add test for validate_input

* remove obsolete import

* additional test config flow

* change test sensor

* docstring

* add additional test for exceptions

* fix test_config

* more tests

* fix test_config_flow

* fixed http error test

* catch connectionerror and introduce testing for this error

* remove .coveragefile

* change comment

* Update homeassistant/components/wallbox/__init__.py

review suggestion by janiversen

Co-authored-by: jan iversen <jancasacondor@gmail.com>

* Update homeassistant/components/wallbox/__init__.py

review suggestion by janiversen (format only)

Co-authored-by: jan iversen <jancasacondor@gmail.com>

* Processed review comments, include more testing for sensor component

* Isolated the async_add_executor_job to make the solution more async

* add a config flow test

* Revert "add a config flow test"

This reverts commit 9c1af82fff.

* Revert "Isolated the async_add_executor_job to make the solution more async"

This reverts commit 0bf034c331.

* Make component more async and add config flow tests

* Changes based on review comments

* made _ methods in WallboxHub for the 'non-async' call to the API and try-catch. Stored the wallbox in the class.

* moved the coordinator to __init__ and pass it as part of the WallboxHub class

* removed obsolete function in __init__

* removed CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL

* fixed spelling and imports on test files

* did isort on component files

Co-authored-by: jan iversen <jancasacondor@gmail.com>
2021-05-24 13:08:24 +02:00
jan iversen
be13a73db8
Allow manual scan and add delay in switch verify. () 2021-05-24 12:59:55 +02:00
Erik Montnemery
2583e4bdc9
Add support for RGBW color to blebox light () 2021-05-24 12:24:07 +02:00
Michael
51c8b1eb0b
Improve code quality of TCP platform ()
* Improve code placements

* Fix entity inheritance

* fix tests

* Improve PLATFORM_SCHEMA handling

* Apply suggestions
2021-05-24 11:03:43 +01:00
Erik Montnemery
870c61a622
Add color_mode support to MQTT light with basic schema ()
* Add color_mode support to MQTT light with basic schema

* Update abbreviations

* Silence pylint

* Improve test coverage

* Apply suggestions from code review
2021-05-24 11:37:02 +02:00
Eduard van Valkenburg
0bba0f07ac
Add SIA Alarm systems ()
* initial commit of SIA integration

* translations

* moved reactions to file, typed everything

* fixed no-else-return 3 times

* refactored config and fix coverage of test

* fix requirements_test

* elimated another platform

* forgot some mentions of sensor

* updated config flow steps, fixed restore and small edits

* fixed pylint

* updated config_flow with better schema, small fixes from review

* final comment and small legibility enhancements

* small fix for pylint

* fixed init

* fixes for botched rebase

* fixed port string

* updated common strings

* rebuild component with eventbus

* fixed pylint and tests

* updates based on review by @bdraco

* updates based on new version of package and reviews

* small updates with latest package

* added raise from

* deleted async_setup from test

* fixed tests

* removed unused code from addititional account step

* fixed typo in strings

* clarification and update to update_data func

* added iot_class to manifest

* fixed entity and unique id setup

* small fix in tests

* improved unique_id semantics and load/unload functions

* added typing in order to fix mypy

* further fixes for typing

* final fixes for mypy

* adding None return types

* fix hub DR identifier

* rebased, added DeviceInfo

* rewrite to clean up and make it easier to read

* replaced functions with format for id and name

* renamed tracker remover small fix in state.setter

* improved readibility of state.setter

* no more state.setter and small updates

* mypy fix

* fixed and improved config flow

* added fixtures to test and other cleaner test code

* removed timeband from config, will reintro in a options flow

* removed timeband from tests

* added options flow for zones and timestamps

* removed type ignore

* replaced mapping with collections.abc
2021-05-24 08:48:28 +02:00
HighOnMikey
c1a1a38ffc
Improve legacy support for Hunter Douglas PowerView ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-05-23 12:47:19 -05:00
jan iversen
f55213d8b1
Update modbus cover to 100% coverage () 2021-05-23 10:18:35 -05:00
J. Nick Koston
4b0b0f5db7
Allow user to override insecure setup codes and pair with homekit_controller ()
* Allow user to override invalid setup codes and pair with homekit_controller

* adjust from manual testing

* invalid -> insecure
2021-05-23 10:15:38 -05:00
Matt Zimmerman
87438dd401
Add services to SmartTub for changing filtration settings ()
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-05-23 09:00:24 -05:00
J. Nick Koston
e1b6385b4d
Add support for doorbell buttons to homekit_controller () 2021-05-23 08:56:16 -05:00
jjlawren
29205a9239
Sonos use common firmware version () 2021-05-23 08:43:49 -05:00
Joakim Sørensen
7ff14b47a8
Use whoami for location lookup () 2021-05-22 20:34:48 -07:00
Shay Levy
c7ada1e8f6
Fix flaky Shelly config flow test () 2021-05-23 02:11:02 +03:00
J. Nick Koston
45897b59f2
Turn on samsungtv with wakeonlan ()
If we have the mac address from discovery, we can use it to wake
the TV.  Currently the TV goes unavailable when you turn it off
as the only way to turn it back on is wake on lan or via the remote.

Users who are not using host networking can use a script instead.
2021-05-22 15:33:37 -05:00
Franck Nijhof
e64b5afa58
Typing improvements for Sentry ()
* Typing improvements for Sentry

* Fix event tags access

* Fix tests
2021-05-22 19:09:19 +02:00