Commit Graph

35864 Commits (202ee0cd3d7cbf9bd9cfc10a7a04d026c7bb937a)

Author SHA1 Message Date
Franck Nijhof f5829173db
More cleanup in Plugwise climate (#66257) 2022-02-10 17:13:22 +01:00
Jarod Wilson deb8185911
Add unique_id for decora_wifi lights (#66142)
I have some decora_wifi switches that I want to be able to move around
to different rooms within Home Assistant, and for that to be practical,
they need unique IDs, so here we are.

Signed-off-by: Jarod Wilson <jarodwilson@gmail.com>
2022-02-10 17:10:58 +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 51e14cebe3
Remove Plugwise Auxiliary sensors (#66259) 2022-02-10 15:55:27 +01:00
Franck Nijhof 3896b4a31d
Add additional switches to Plugwise (#66261) 2022-02-10 15:49:19 +01:00
Franck Nijhof 4cad29d7d4
More cleanup in Plugwise binary sensor (#66255) 2022-02-10 11:17:35 +01:00
Erik Montnemery f5fff95e8b
Tweak constant config_entries.DISCOVERY_SOURCES (#66249) 2022-02-10 11:12:38 +01:00
epenet 47d6f75c17
Enable basic type checking in template (#66222)
* Fix binary_sensor

* Adjust button

* Adjust fan

* Adjust select

* Adjust template_entity

* Adjust trigger_entity

* Adjust weather

* Adjust init

* Adjust number

* Adjust None check
2022-02-10 10:59:54 +01:00
Franck Nijhof 8760cb035a
More cleanup in Plugwise switch (#66254) 2022-02-10 10:17:37 +01:00
epenet ea325ef027
Enable basic type checking in demo platforms (#66212)
* Adjust type hints in demo platforms

* Adjust mypy config

* Adjust name
2022-02-10 10:05:58 +01:00
Franck Nijhof b3814aa4e6
Refactor Plugwise command handling (#66202) 2022-02-10 09:53:26 +01:00
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
Kevin Stillhammer a0119f7ed0
Resolve zones and return state in find_coordinates (#66081) 2022-02-09 10:43:20 +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
Erik Montnemery 55d8314093
Fix cleanup of MQTT debug info (#66104) 2022-02-08 12:49:25 -08:00
J. Nick Koston 07b3d23835
Improve wiz performance (#66105) 2022-02-08 21:34:52 +01:00
Sander Jochems d574e54fd8
Fivem code quality improvements (#66086)
* specify config type

* move coordinator outside try block

* rename gamename to game_name

* remove log in __init__

* Remove logging and minify update

* Add types to parameters

* Remove name from device

* Remove update listener

* Remove status icon

* Dont allow duplicate entries

* Use default translation string

* Remove online and port from coordinator
2022-02-08 20:42:55 +01:00
Franck Nijhof dad1dbeb6e
Cleanup hass.data in Plugwise (#66096) 2022-02-08 21:17:49 +02:00
J. Nick Koston d62e9c2b92
Loosen wiz discovery matching (#66095) 2022-02-08 19:57:21 +01:00
Franck Nijhof 41a4d40b71
Reuse existing coordinator entity update in Plugwise platforms (#66079)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 19:54:10 +01:00
Ben Edmunds c93d389544
Bump async-upnp-client to 0.23.5 (#65922) 2022-02-08 20:27:16 +02:00
jjlawren a7fd477c64
Refactor Sonos polling (#65722)
* Refactor Sonos polling

Explicitly rename fallback polling
Catch soco exceptions centrally where possible
Create SonosPollingEntity subclass
Remove unnecessary soco_error fixture argument
Remove unnecessary polling in update_volume()
Adjust log levels and wording
Set explicit timeout on library

* Adjust logging to use raised exceptions

* Simplify availabiliity checks when using built-in poller

* Fix typing for return values
2022-02-08 12:17:05 -06:00
Franck Nijhof 4efebcb86c
Use upstream device information for Plugwise (#66074) 2022-02-08 19:08:01 +01:00
Mick Vleeshouwer 199c8fef40
Fix MyFox Camera Shutter entity in Overkiz integration (#66088) 2022-02-08 17:49:38 +01:00
Allen Porter 6f46d98308
Bump python-nest to 4.2.0 for python 3.10 fixes (#66090) 2022-02-08 08:40:06 -08:00
Mick Vleeshouwer b6ad79e2b8
Update PyOverkiz to 1.3.4 (#66076) 2022-02-08 16:11:05 +01:00
Franck Nijhof 473834acd2
Add myself as codeowner to Plugwise (#66080) 2022-02-08 15:23:11 +01:00
Pablo Ovelleiro Corral 46b7b1ffb3
Increase timeout for InfluxDB v2 connections (#63885)
* Update influxdb timeout

* Update homeassistant/components/influxdb/const.py

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
2022-02-08 09:20:50 -05:00
AJ Schmidt 37525ae8c3
Remove AlarmDecoder Codeowner (#66078) 2022-02-08 15:14:33 +01:00
Tiernan 2df5060d80
Fix TOD incorrectly determining the state between sunrise and sunset (#65884)
* Fix TOD component incorrectly determining the state between sunrise and sunset (#30199)

* TOD fix

* Comment added

* Review

* Review

* Review

* Update time after day fix workaround for compatibility with
current version.
Only apply fix when using times and not when using sun events.
Add unit test for behaviour.

Co-authored-by: Nikolay Vasilchuk <Anonym.tsk@gmail.com>
2022-02-08 14:26:36 +01:00
Mick Vleeshouwer dcab9a19d6
Remove Overkiz switch platform todo and add 2 devices (#66069) 2022-02-08 14:05:35 +02:00
Eduard van Valkenburg f74706a265
Bump azure-eventhub to 5.7.0 (#66061) 2022-02-08 12:56:24 +01:00
Franck Nijhof 1fc717ed1c
Add diagnostics support to Plugwise (#65982) 2022-02-08 12:43:45 +01:00
Franck Nijhof d12a392767
Update plugwise 0.16.2 (#65933) 2022-02-08 11:13:05 +01:00
Sander Jochems 0ea82bdbfb
Fivem integration (#65089)
* Initial fivem integration setup

* Use licenseKey for unique ID

* Create FiveMServer class

* Create FiveMStatusBinarySensor

* Fix platform loading

* Create sensor platform

* Remove config flow tests

* Update manifest.json

* Use attr_ instead or properties in sensors.py

* Use entry_id as unique_id

* Move device info to _attr instead of property

* Register callback in FiveMEntity

* Create config flow tests

* Add loggin to fivem

* Use FiveM in config_flow

* Use update_coordinator instead of dispatcher

* Bump fivem-api to 0.1.2

* Remove leftovers

* More tests for config flow

* Add component files to .coveragerc

* Fix simple comments

* Add gamename check to config flow

* Use entity descriptions for sensors

* Move extra attributes to init

* Use [] instead of get() for server info

* Fix error in gamename test
2022-02-08 11:27:11 +02:00
Maikel Punie a03d8179d0
Bump velbusaio to 2022.2.3 (#66055) 2022-02-08 09:48:42 +01:00
Raman Gupta 4076ca9641
Fix schema for zwave_js WS API (#66052) 2022-02-07 21:53:48 -08:00
Franck Nijhof 895aee3fb2
Add configuration_url to Plugwise discovery (#66047) 2022-02-08 03:00:41 +01:00
Franck Nijhof 379945860b
Add configuration_url to Octoprint discovery (#66046) 2022-02-08 02:59:38 +01:00
Franck Nijhof 22e379cd54
Add support for mc devices to Tuya (#66044) 2022-02-08 02:56:32 +01:00
starkillerOG f9c81dd00b
Lock Netgear api during setup (#66033) 2022-02-08 02:50:38 +01:00
Patrik Lindgren afd0005a31
Add sensor for filter time left on Tradfri fan platform (#65877)
* Add support for filter time left

* Fix test for fan platform

* Remove debug code

* Add unique id migration tool

* Convert to hours

* Fix tests

* Apply suggestions from code review

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

* Add comment, check migration

* Refactor migration helper

* Refactor migration helper

* Move definition of new unique id

* Return after warning

* Add test for unique id migration

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-08 02:21:22 +01:00
J. Nick Koston f943f30492
Add discovery support to elkm1 (#65205) 2022-02-07 16:25:26 -08:00
GitHub Action cf70ad10e8 [ci skip] Translation update 2022-02-08 00:15:56 +00:00
jjlawren 36cfa7786d
Clean up Sonos unsubscribe/resubscribe exception handling and logging (#66025) 2022-02-07 16:00:57 -08:00
Erik Montnemery 33623c3fe8
Fix race in MQTT sensor and binary_sensor expire_after (#66040) 2022-02-07 15:47:23 -08:00
Erik Montnemery 39ed628cca
Suppress unwanted error messages during recorder migration (#66004) 2022-02-07 15:46:40 -08:00
J. Nick Koston 95cc677ba6
Fix decoding discovery with old Magic Home firmwares (#66038) 2022-02-07 15:45:50 -08:00
J. Nick Koston 175812d9e1
Fix missing exception catch in august to prevent failed setup (#66045) 2022-02-07 15:45:40 -08:00
Paulus Schoutsen 95a890c6e1
Get_url to prefer external URL if SSL configured (#66039) 2022-02-07 15:44:02 -08:00
Erik Montnemery 7cc6770f83
Revert "Make idle chromecasts appear as idle instead of off" (#66005) 2022-02-07 20:24:30 +01:00