Commit Graph

11268 Commits

Author SHA1 Message Date
Franck Nijhof
276fd4f42c Add Python 3.10 to CI (#59729) 2022-02-17 14:58:24 +01:00
Franck Nijhof
de24d00a1c Use min/max/step from thermostat in Plugwise (#66618) 2022-02-17 14:11:47 +01:00
Jan Bouwhuis
83846bb5cc MQTT climate preset_modes rework (#66062)
* MQTT climate preset_modes rework

* Set deprection date to 2022.9 (6 months)

* add valid_preset_mode_configuration for discovery

* Update deprecation date
2022-02-17 13:51:35 +01:00
Erik Montnemery
4236764fd5 Don't allow creating or updating input_select with duplicates (#66718)
* Don't allow creating or updating input_select with duplicates

* Simplify error message

* Improve error message
2022-02-17 13:11:49 +01:00
epenet
a9aefb66b5 Add device info to samsungtv diagnostics (#66728)
* Add device-info to samsungtv diagnostics

* Adjust tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-17 12:35:02 +01:00
Raman Gupta
a1b81b2de4 Add inclusion state to zwave_js/network_status WS API cmd (#65398) 2022-02-17 11:38:20 +01:00
Erik Montnemery
f89de613d9 Improve MQTT binary_sensor test (#66688) 2022-02-17 00:06:42 +01:00
Brett Adams
bccfaceedb Code Quality improvements for Aussie Broadband (#65408)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-16 23:38:05 +01:00
epenet
2687f61428 Fix slow samsungtv test (#66696) 2022-02-16 16:04:50 -06:00
Erik Montnemery
eaf73318e1 Remove duplicated options from input_select (#66680) 2022-02-16 22:04:49 +01:00
epenet
0138caa277 Fix side_effect patching in samsungtv tests (#66651)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-16 12:40:11 -08:00
epenet
2d33e435b9 Fix token refresh in samsungtv (#66533) 2022-02-16 12:28:01 -08:00
Bram Kragten
ef34f070ee Allow metadata in service call data (#66672)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
2022-02-16 21:13:36 +01:00
epenet
14e48bac3a Fix SamsungTVWS mocking in samsungtv tests (#66650)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-16 12:13:11 -08:00
J. Nick Koston
0ec89ae5da Teach _async_abort_entries_match about entry options (#66662) 2022-02-16 18:15:31 +01:00
Robert Svensson
dd9b14d5c9 Add Button platform to deCONZ integration (#65700)
* Improve scene platform

* Add button platform, tests and fix tests affected by new entities existing

* Remove unnused property

* Bump dependency to v87
2022-02-16 17:55:30 +01:00
Bram Kragten
a9390908ea Keep TTS media browser params in identifier (#66663)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-16 08:54:57 -08:00
Paulus Schoutsen
cd5b69d02e Add Google local indicator (#66610) 2022-02-16 07:54:59 -08:00
Tobias Sauerwein
3d1cad9f67 Improve handling of cloud hook registration (#65664)
Signed-off-by: cgtobi <cgtobi@gmail.com>
2022-02-16 16:42:45 +01:00
Mike Fugate
0bd0b4766e Refactor sleepiq as async with config flow (#64850)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-16 08:51:29 -06:00
Franck Nijhof
4051e2f518 Fix Plugwise auto HVAC mode (#66639)
* Fix Plugwise auto hvac mode

* Clean up set HVAC
2022-02-16 13:22:21 +01:00
Erik Montnemery
dcb3fc49c9 Include changes in EVENT_DEVICE_REGISTRY_UPDATED (#66641) 2022-02-16 12:29:08 +01:00
J. Nick Koston
e0cee22b8a Switch ezviz to use integration discovery (#66579) 2022-02-16 12:07:36 +01:00
J. Nick Koston
38b9bea9a3 Switch tplink to use integration discovery (#66575) 2022-02-16 12:06:58 +01:00
epenet
cf5652737a Cleanup samsungtv tests (#66570)
* Drop unused init method

* Add type hints to media_player tests

* Adjust test_init

* Adjust media_player

* Add type hints to conftest

* Use Mock in test_media_player

* Use lowercase in test_init

* Use relative import in diagnostics

* Add type hints to config_flow

* Adjust coveragerc

* Make gethostbyname autouse

* Cleanup gethostbyname and remote fixtures

* Drop unused fixtures

* Undo type hints and usefixtures on media_player

* Undo type hints and usefixtures in test_init

* Undo type hints in conftest

* Undo usefixtures in test_config_flow

* Format

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-16 09:29:52 +01:00
Marcel van der Veldt
8f4ec89be6 Bump aiohue to version 4.1.2 (#66609) 2022-02-15 17:26:13 -08:00
J. Nick Koston
99568b133f Switch flux_led to use integration discovery (#66574) 2022-02-16 01:25:43 +01:00
J. Nick Koston
6ae2331805 Switch senseme to use integration discovery (#66576) 2022-02-16 00:47:01 +01:00
J. Nick Koston
d79d775d92 Switch elkm1 to use integration discovery (#66572) 2022-02-15 23:18:55 +01:00
J. Nick Koston
b28754e5fe Switch steamist to use integration discovery (#66578) 2022-02-15 23:18:13 +01:00
J. Nick Koston
d64ef2ba73 Deduplicate flux_led title and CONF_NAME (#66598) 2022-02-15 22:44:35 +01:00
J. Nick Koston
f069a37f7d Allow integrations to request dhcp discovery flows for registered devices (#66528) 2022-02-15 11:02:52 -06:00
J. Nick Koston
2b43293363 Switch unifiprotect to use integration discovery (#66569)
Backstory: https://github.com/home-assistant/core/pull/65752#discussion_r800068914
2022-02-15 17:02:33 +01:00
Joakim Sørensen
0d2712e436 Add binary_sensor to Version integration (#66539)
* Add binary_sensor to version integration

* Add test to check we not create for local

* Move _attr_icon to sensor

* Update homeassistant/components/version/binary_sensor.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-15 16:39:34 +01:00
epenet
52ebe58b14 Add tests for samsungtv diagnostics (#66563)
* Add tests for samsungtv diagnostics

* Adjust coveragerc

* Adjust type hints

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-15 16:24:13 +02:00
Robert Svensson
1bc936ca8d Improve Deconz sensors (#65259) 2022-02-15 08:32:56 +01:00
Allen Porter
572fa7d055 Update nest camera to pull still images from stream component (#66427)
* Update nest to use stream thumbnail when it exists

* Update nest camera to always pull still image from stream

Update nest camera to always pull the still iamge from the stream component,
removing the use of the separate ffmpeg call, and removing use of the nest event
image. Image for events can now be pulled using the media source APIs, rather
than relying on the camera snapshot.

* Simplify a comment

* Remove more unused variables

* Simplify comments, image, and test code

* Remove assertions for placeholder images
2022-02-14 21:45:09 -08:00
Brett Adams
6b6f50e28b Bump pyaussiebb in Aussie Broadband (#65754)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-02-14 21:02:40 -06:00
Diogo Gomes
b211a1faa7 Fix utility meter restore state (#66490)
* Address #63874

* avoid setting _last_period to None

* name is always set in discovery

* ValueError never happens only DecimalException

* async_tariff_change tracks state change - state machine will not pass a None

* test we only reset one utility_meter

* test corrupted restored state

* pretty sure _current_tariff doesn't change from init until here

* missing assert

* Revert "async_tariff_change tracks state change - state machine will not pass a None"

This reverts commit 24fc04a964139e5cfecbfa20f91e2d30ab145d77.

* address review comment

* always a Decimal
2022-02-15 02:16:30 +01:00
Raman Gupta
152dbfd2fe Add button entity to ping zwave_js node (#66129)
* Add button entity to ping zwave_js node

* Fix docstring

* Fix docstrings

* Fix and simplify tests

* Fix name

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/services.py

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

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/button.py

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

* review comments

* Update homeassistant/components/zwave_js/button.py

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

* Update homeassistant/components/zwave_js/button.py

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

* Remove self.client line

* Add callback to remove entity

* Add extra dispatch signal on replacement

* Combine signals for valueless entities

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-14 15:38:22 -05:00
Raman Gupta
113c3149c4 Improve zwave_js device automation strings for config parameters (#66428)
* Improve zwave_js device automation strings for config parameters

* rename things to be more clear

* Match config file format
2022-02-14 15:14:02 -05:00
Simon Hansen
7cb0ce0eec Move config option to OptionsFlow in iss (#65303)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-02-14 21:07:50 +01:00
Paulus Schoutsen
8456c6416e Add a media source to TTS (#66483) 2022-02-14 08:54:12 -08:00
J. Nick Koston
013d227113 Ensure WiZ cleans up on shutdown and failed setup (#66520) 2022-02-14 17:32:34 +01:00
Paulus Schoutsen
fec8c2ab82 Add support for MJPEG cameras to camera media source (#66499) 2022-02-14 17:04:19 +01:00
J. Nick Koston
63cb79ec29 Add support for setting the effect speed in WiZ (#66457) 2022-02-14 16:49:43 +01:00
J. Nick Koston
445ad1d592 Add test coverage for WiZ lights and switches (#66387) 2022-02-14 16:31:26 +01:00
Paulus Schoutsen
707f112f51 Improve raised exception consistency for media source (#66497) 2022-02-14 15:41:53 +01:00
Erik Montnemery
795d249c8c Small improvement of cast test (#66513) 2022-02-14 15:06:33 +01:00
J. Nick Koston
00d7fdd274 Add WiZ occupancy sensor support (#66231) 2022-02-14 14:25:15 +01:00