Commit Graph

10144 Commits

Author SHA1 Message Date
J. Nick Koston
00d7fdd274 Add WiZ occupancy sensor support (#66231) 2022-02-14 14:25:15 +01:00
Ryan Fleming
35b343de9e Octoprint buttons (#66368) 2022-02-14 11:05:06 +01:00
Raman Gupta
051bf173dc revert change in vizio logic to fix bug (#66424) 2022-02-14 09:49:19 +02:00
Shay Levy
fe077b6990 Use shorthand attributes in webostv (#66418) 2022-02-13 23:47:37 +02:00
Joshua Roys
bc2cc42955 Don't abort zeroconf discovery for IPv6-only devices (#66455) 2022-02-13 15:24:23 -06:00
Jc2k
40c6832cc1 Update homekit_controller to use the new typed discovery data (#66462) 2022-02-13 12:45:30 -06:00
Jc2k
b8a8485e91 Replace use of deprecated APIs in aiohomekit (#66409) 2022-02-12 23:17:55 -06:00
Allen Porter
0a128d006f Improve stream robustness by always retrying worker (#66417)
Improve stream robustness by always retrying in the worker on failure, rather than only when
keepalive is enabled.

This will make cloud cameras like nest more robust, since they have a tendency to be flaky. This
is also needed to improve client side retry behavior because when the client attempts to retry,
the stream token is already revoked because the worker stopped.

The worker will still idle timeout if no streams are present, so it won't go on forever if no
frontend is viewing the stream.
2022-02-12 20:59:11 -08:00
kpine
a7e5f38a3e Add is_controller_node flag to WS node status (#66404) 2022-02-12 22:08:39 +01:00
G Johansson
a8304392b5 Code quality file (#65258) 2022-02-12 11:49:37 -06:00
corneyl
17a732197b Add Picnic re-auth flow (#62938)
* Add re-auth handler for Picnic

* Extracted authentication part so right form/errors can be shown during re-auth flow

* Add tests for Picnic's re-authentication flow

* Simplify re-auth flow by using the same step as step_user

* Use user step also for re-auth flow instead of having an authenticate step

* Add check for when re-auth is done with different account

* Remove unnecessary else in Picnic config flow

* Fix the step id in the translation strings file
2022-02-12 08:15:36 -08:00
G Johansson
6d20e68e6d Code quality scrape (#65441) 2022-02-12 08:28:54 -06:00
G Johansson
3771c154fa Improve code quality command_line (#65333) 2022-02-12 08:19:37 -06:00
G Johansson
8da150bd71 Improve code quality sql (#65321) 2022-02-12 08:13:01 -06:00
Jc2k
95e4ea8fcd Simplify the homekit_controller unignore journey (#66353) 2022-02-12 13:16:05 +00:00
Allen Porter
b2f5ab2008 Publish Nest Motion/Person events with optional user defined zone information (#66187)
Publish Nest events with zone information if present. User defined zones are configured
in the Google Home app, and are published with Motion/Person event.
2022-02-11 21:22:53 -08:00
Chris Talkington
f344ea7bbb Add select platform to roku (#66133) 2022-02-11 20:52:31 -06:00
G Johansson
9610fa5979 Code cleanup yale_smart_alarm (#65081) 2022-02-11 18:04:04 -06:00
J. Nick Koston
13af2728c2 Fix zwave_me zeroconf mocking (#66356) 2022-02-11 17:13:57 -06:00
J. Nick Koston
a6742eff34 Add button to wake august locks from deep sleep (#66343) 2022-02-11 17:13:35 -06:00
Joshua Roys
9134e5c844 Get discovered zeroconf IPv6 addresses (#65462) 2022-02-11 16:46:17 -06:00
Jc2k
0daf20c0cc Prepare for new aiohomekit lifecycle API (#66340) 2022-02-11 19:26:35 +00:00
Franck Nijhof
2f220b27d4 Fix CPUSpeed with missing info (#66339) 2022-02-11 19:38:55 +01:00
Franck Nijhof
8ff987d90c Fix PVOutput when no data is available (#66338) 2022-02-11 19:11:06 +01:00
Shay Levy
89b20b9133 Fix webostv restored supported features turn on (#66318)
* Fix webostv restored supported features turn on

* Remove ternary operator expression
2022-02-11 16:48:36 +02:00
Franck Nijhof
11a13aa0b8 Add heating and cooling binary sensors to Plugwise (#66317) 2022-02-11 13:36:27 +01:00
Erik Montnemery
335a918118 Create MQTT discovery flow when manual config is present (#66248)
* Create MQTT discovery flow when manual config is present

* Change to integration_discovery flow

* Add test

* Add default handler for integration_discovery
2022-02-11 10:31:51 +01:00
jjlawren
4d944e35fd Skip polling Sonos audio input sensor when idle (#66271) 2022-02-10 12:48:13 -08:00
J. Nick Koston
c91a20537a Add discovery on network up to WiZ (#66144) 2022-02-10 12:30:18 -08:00
Erik Montnemery
fe38e6ba87 Drop MQTT import flow (#66160)
* Drop MQTT import flow

* Reload manually configured MQTT entities when config entry is setup

* Address review comments

* Actually remove the import flow
2022-02-10 21:09:57 +01:00
Franck Nijhof
bd920aa43d Cleanup existing Plugwise tests and test fixtures (#66282)
* Cleanup existing Plugwise tests and test fixtures

* More cleanup
2022-02-10 20:41:30 +01:00
Franck Nijhof
b8253b1b47 Plugwise HVAC/Preset mode fixes (#66273) 2022-02-10 18:10:21 +01:00
Paulus Schoutsen
dd48f1e6fc Allow uploading media to media folder (#66143) 2022-02-10 08:03:14 -08:00
J. Nick Koston
0fb2c78b6d Add RGBW/RGBWW support to WiZ (#66196) 2022-02-10 09:08:33 -06:00
Franck Nijhof
8760cb035a More cleanup in Plugwise switch (#66254) 2022-02-10 10:17:37 +01:00
Franck Nijhof
b3814aa4e6 Refactor Plugwise command handling (#66202) 2022-02-10 09:53:26 +01:00
j-a-n
243d003acc Add Moehlenhoff Alpha2 underfloor heating system integration (#42771)
* Add Moehlenhoff Alpha2 underfloor heating system integration

* isort changes

* flake8 changes

* Do not exclude config_flow.py

* pylint changes

* Add config_flow test

* correct requirements_test_all.txt

* more tests

* Update test description

* Test connection and catch TimeoutError in async_setup_entry

* Add version to manifest file

* Remove version from manifest file

* Replace tests.async_mock.patch by unittest.mock.patch

* Update moehlenhoff-alpha2 to version 1.0.1

* Update requirements for moehlenhoff-alpha2 1.0.1

* Update moehlenhoff-alpha2 to 1.0.2

* Use async_setup_platforms

* Use async_unload_platforms

* Separate connection and devices for each entry_id

* Use async_track_time_interval to schedule updates

* Check if input is valid before checking uniqueness

* Move Exception handling to validate_input

* Catch aiohttp.client_exceptions.ClientConnectorError

* Remove translation files

* Mock TimeoutError

* Fix data update

* Replace current callback implementation with ha dispatcher

* Return False in should_poll

* Remove unused argument

* Remove CONNECTION_CLASS

* Use _async_current_entries

* Call async_schedule_update_ha_state after data update

* Remove unneeded async_setup

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Remove unneeded async_setup_platform

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Set Schema attribute host required

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Remove unused Exception class

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Update manifest.json

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* pylint constructor return type None

* Replace properties by class variables

* use pass instead of return

* Remove unused sync update method

* remove property hvac_action

* remove pass

* rework exception handling

* Update homeassistant/components/moehlenhoff_alpha2/config_flow.py

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Correct indentation

* catch Exception in validate_input

* Replace HomeAssistantType with HomeAssistant

* Update to moehlenhoff-alpha2 1.0.3

* Allow to switch between heating and cooling mode

* Update moehlenhoff-alpha2 to version 1.0.4

* Update heatarea data after setting target temperature

* Support hvac_action

* Fix heatarea update with multiple bases

* Update data after setting preset mode

* Use custom preset modes like defined by device

* Fix config flow test

* Fix test_duplicate_error

* Rename property to extra_state_attributes

Rename property device_state_attributes to extra_state_attributes and
return lowercase keys in dict.

* Refactor using DataUpdateCoordinator

* Remove _attr_should_poll

* Raise HomeAssistantError on communication error

Catch HTTPError instead of broad except and reraise as HomeAssistantError

* Change DataUpdateCoordinator name to alpha2_base

* Refresh coordinator before setting data

* Raise ValueError on invalid heat area mode

* Rename heatarea to heat_area

* Set type annotation in class attribute

* Move coordinator to top

* Move exception handling to the coordinator

* Use heat_area_id directly

* Sore get_cooling() result into local var

* Add explanation of status attributes

and remove BLOCK_HC

* Fix pylint warnings

* from __future__ import annotations

* Use Platform Enum

* Move data handling to coordinator

* Remove property extra_state_attributes

* Add missing annotations

* Update moehlenhoff-alpha2 to version 1.1.2

* Rework tests based on the scaffold template

* Set also heat/cool/day/night temp with target temp

* Remove unneeded code from tests

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>
2022-02-10 08:28:52 +01:00
epenet
cc5bb556c8 Move Freebox reboot service to a button entity (#65501)
* Add restart button to freebox

* Add warning

* restart => reboot

* Add button tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-09 22:20:24 +01:00
Paulus Schoutsen
3bce870c6d Add helper for media players to handle HA hosted media (#66120)
* Sonos to sign all HASS urls

* Don't sign if queries in url

* Extract media player hass URL handling to helper
2022-02-09 12:50:33 -08:00
Stephan Traub
a6013dc0de Update WiZ with IP address validation (#66117) 2022-02-09 12:53:32 -06:00
Franck Nijhof
aa95150360 Add entity descriptions to Plugwise switch platform (#66174) 2022-02-09 17:56:07 +01:00
Erik Montnemery
3f7b7187ab Fix controlling nested groups (#66176) 2022-02-09 14:27:46 +01:00
Duco Sebel
f2fe091979 Allow HomeWizard devices with disabled api to show up in discovery (#65295) 2022-02-08 14:51:28 -08:00
Dave T
5ebc02cef6 Fix generic camera typo in attr_frame_interval (#65390) 2022-02-08 14:47:36 -08:00
Paulus Schoutsen
716a1e2a64 Add camera media source (#65977) 2022-02-08 14:32:02 -08:00
Franck Nijhof
b9f21d4e07 Improve typing of Spotify (#66109)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 23:07:13 +01:00
Robert Svensson
b012b79167 Adapt deCONZ number platform to align with updated design of binary sensor and sensor platforms (#65248)
* Adapt number to align with binary sensor and sensor platforms

* Make number tests easier to expand
2022-02-08 23:03:37 +01:00
Erik Montnemery
009b31941a Support restoring SensorEntity native_value (#66068) 2022-02-08 14:00:26 -08:00
Patrik Lindgren
f8a84f0101 Add diagnostics for Tradfri platform (#66092)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 22:05:33 +01:00
epenet
86ab500afd Add Renault hvac sensors (#65993)
* Add hvac sensors to renault

* Adjust fixtures

* Adjust tests

* Use icon_fn

* Use lambda

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-08 22:02:45 +01:00