Commit Graph

33273 Commits (678e56b8b765c24fc83020a054304e9d9a6890af)

Author SHA1 Message Date
Jan Bouwhuis 678e56b8b7
Mqtt move to .const (#65631) 2022-02-10 09:18:35 +01:00
epenet f17d66228c
Enable basic type checking in demo init (#66218)
* Enable basic type checking in demo init

* Remove from mypy ignore list
2022-02-10 09:04:36 +01:00
Paulus Schoutsen e90143e5c9
Sort media sources (#66237)
* Sort media sources

* Flatten media sources and sort Cast children

* Only expand if possible
2022-02-10 09:03:29 +01:00
Daniel Hjelseth Høyer 3733aa9494
Add more sensors for users with Tibber Pulse (#66201)
* Tibber, Add stats and sensors for homes with real time meter

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Tibber stats

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Monthly peak hour
2022-02-10 08:47:34 +01:00
Raman Gupta 72acda81a7
Simplify get_unique_id helper function for zwave_js (#66221) 2022-02-10 08:46:32 +01:00
Michael 23e39d62d4
bump py-synologydsm-api to 1.0.6 (#66226) 2022-02-10 08:43:48 +01:00
Milan Meulemans 86cf5ec5c2
Bump aioaseko to 0.0.2 to fix issue (#66240) 2022-02-10 08:37:35 +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
Patrik Lindgren 543b49728a
Fix tradfri device name (#66219) 2022-02-10 08:19:59 +01:00
jjlawren 9fd8428254
Sonos lock subscription actions (#66204)
* Move exception logging to helper

* Wrap subscription in lock

* Rewrite subscribe method to use new logging helper

* Mark entitites as unavailable sooner to avoid unnecessary polls

* Rename unclear method and update docstring

* Move lock to unsubscribe
2022-02-09 21:56:10 -06:00
GitHub Action 7d70b0a16b [ci skip] Translation update 2022-02-10 00:15:56 +00:00
Mick Vleeshouwer d7fcda01b8
Add siren platform to Overkiz (#65300) 2022-02-09 17:36:56 -06:00
jjlawren 47af256610
Schedule activity checks when using manual hosts (#65970) 2022-02-09 16:55:00 -06:00
Kevin Stillhammer 7a1bbb06be
add @eifinger as waze_travel_time codeowner (#66214) 2022-02-09 23:30:29 +02:00
Kevin Stillhammer 604fe3f19b
add @eifinger as google_travel_time_codeowner (#66215) 2022-02-09 23:29:39 +02: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
Franck Nijhof 8a09303c98
Extract Spotify media browsing into a module (#66175) 2022-02-09 22:03:15 +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
Maximilian bd657e5dd7
Add missing nina warnings (#66211) 2022-02-09 21:08:46 +01:00
Stephan Traub a6013dc0de
Update WiZ with IP address validation (#66117) 2022-02-09 12:53:32 -06:00
Erik Montnemery 83a10cca53
Enable basic type checking for config (#66197) 2022-02-09 19:09:55 +01:00
Franck Nijhof d4995624ee
Refactor Plugwise notification binary sensor (#66159) 2022-02-09 18:08:28 +01:00
Franck Nijhof aa95150360
Add entity descriptions to Plugwise switch platform (#66174) 2022-02-09 17:56:07 +01:00
Otto Winter 1f4ee3c265
Bump aioesphomeapi from 10.8.1 to 10.8.2 (#66189) 2022-02-09 17:54:27 +01:00
epenet 567f07c96e
Fix hdmi-cec initialization (#66172) 2022-02-09 07:52:32 -08:00
Erik Montnemery 3f7b7187ab
Fix controlling nested groups (#66176) 2022-02-09 14:27:46 +01:00
Franck Nijhof bc9ccf0e47
Add device availability to Plugwise (#66152) 2022-02-09 10:33:06 +01:00
Franck Nijhof 2f08372026
Correct Velbus button light entity category (#66156) 2022-02-09 10:31:58 +01:00
Richard Benson b90434e8d6
Bump amcrest to 1.9.4 (#66124)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-02-09 10:25:07 +01:00
Franck Nijhof d34c289691
Clean up unneeded preset variable in Plugwise climate (#66151) 2022-02-09 10:23:39 +01:00
Franck Nijhof 924bcdf269
Move Plugewise binary sensor icon state into entity description (#66148) 2022-02-09 10:15:20 +01:00
Michael 95aec44292
Fix system is loaded flag during reboot/shutdown of Synology DSM (#66125) 2022-02-09 10:02:21 +01:00
Maikel Punie d9e9820e21
Move the buttonlights to diagnostic entities (#65423) 2022-02-09 09:50:15 +01:00
Simone Chemelli bfc3c29c6a
Change detection of router devices for Fritz (#65965) 2022-02-09 09:44:04 +01:00
Erik Montnemery da38d9ab80
Fix MQTT debug info (#66146) 2022-02-09 09:43:03 +01:00
Aaron Bach 83b7fac9a4
Bump simplisafe-python to 2022.02.1 (#66140) 2022-02-09 09:20:57 +01:00
Allen Porter 9446b39ae0
Bump google-nest-sdm to 1.7.0 (#66145) 2022-02-09 09:12:49 +01:00
Paulus Schoutsen e6e49dcb07
VLC Telnet to sign all HASS URLs (#66123) 2022-02-08 17:13:14 -08:00
Paulus Schoutsen f2843283bf
Roku to sign all HASS urls (#66122) 2022-02-08 18:55:52 -06:00
GitHub Action fb96c31a27 [ci skip] Translation update 2022-02-09 00:23:56 +00: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 b216f6f448
Fix Plugwise notification sensor (#66116) 2022-02-08 14:12:22 -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 911e488d48
Fix ENTITY_CATEGORIES_SCHEMA (#66108)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-08 14:00:53 -08: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