Commit Graph

33632 Commits (9ed4bcf9659f5e7169306c0a19d1e4f976ee02c8)

Author SHA1 Message Date
Mick Vleeshouwer 5568531f74
Improve exception catching and handling in Overkiz integration (#66604) 2022-02-15 14:44:53 -06:00
J. Nick Koston c5ae43144d
Enable dhcp flows for axis registered devices (#66581)
References:
https://github.com/home-assistant/developers.home-assistant/pull/1212
https://github.com/home-assistant/core/pull/66528

I am doing these one at a time to make sure codeowners are aware
and do not glance over the PR because it has a lot of integrations
in it
2022-02-15 21:32:10 +01:00
Mick Vleeshouwer 30528e0de0
Add extra entity descriptions to Overkiz integration (#66093) 2022-02-15 14:24:33 -06:00
J. Nick Koston 9f1c58cda3
Enable dhcp flows for tplink registered devices (#66592)
References:
https://github.com/home-assistant/developers.home-assistant/pull/1212
https://github.com/home-assistant/core/pull/66528

I am doing these one at a time to make sure codeowners are aware
and do not glance over the PR because it has a lot of integrations
in it
2022-02-15 20:33:45 +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
Eduard van Valkenburg af4e37339a
Add Connectivity sensor to SIA (#64305)
* implemented connectivity sensor

* further cleanup off update code

* cleanup and tighter behaviour for attributes

* added seperate connectivity class to binary sensor

* callbacks and keys

* redid name and unique_id logic, non-breaking result

* using entry more in inits

* Fix import

* fix ping_interval in sia_entity_base

* added ping_interval default to next

* fixed next

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-15 15:53:38 +01:00
Franck Nijhof 430162fa5f
Fix Tuya Covers without state in their control data point (#66564) 2022-02-15 15:25:36 +01:00
Franck Nijhof cbdbb66475
Fix integrations building on top of mjpeg (#66557) 2022-02-15 15:24:52 +01:00
Franck Nijhof 00221f1d66
Cleanup and strict typing for MJPEG integration (#66526) 2022-02-15 12:32:14 +01:00
Jeef c5dfe2b5a8
Bump intellifire4py to 0.9.8 (#66531) 2022-02-15 11:04:26 +01:00
Josh Soref 02e2150270
Fix econet spelling (#64254)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-02-15 10:53:35 +01:00
Robert Hillis 7eed4af6ae
Use enums in vizio (#61996)
Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2022-02-15 10:51:55 +01:00
Franck Nijhof cb03db8df4
Replace discord.py with nextcord (#66540)
* Replace discord.py with nextcord

* Typing tweak

* Another pip check decrease :)
2022-02-15 10:37:41 +01:00
Amos Yuen 23a22d1860
Override iotawatt coordinator request_refresh_debouncer to allow updates every 5s (#64892)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-15 09:55:13 +01:00
Robert Svensson 1bc936ca8d
Improve Deconz sensors (#65259) 2022-02-15 08:32:56 +01:00
J. Nick Koston 334a8ab13f
Fix missing abort strings in wiz (#66538) 2022-02-15 08:24:35 +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
Paulus Schoutsen 94980399cf
Bump hass-nabucas to 0.52.1 (#66536) 2022-02-14 20:46:32 -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 24fc04a964.

* address review comment

* always a Decimal
2022-02-15 02:16:30 +01:00
Franck Nijhof 4dbd9b21b7
Adjust Plugwise debouncer to not refresh immediately (#66521) 2022-02-15 01:47:39 +01:00
Paulus Schoutsen 6d10bd094f
Bump frontend to 20220214.0 (#66535) 2022-02-14 16:23:37 -08:00
GitHub Action d69d0e8817 [ci skip] Translation update 2022-02-15 00:14:48 +00:00
epenet b51866b1c4
Revert "Fix raspihats callbacks (#64122)" (#66517)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-15 01:12:34 +01:00
EtienneMD ffe821a1f7
Fix HVAC modes for zha Stelpro fan heater (#66293) 2022-02-14 23:06:48 +01:00
Jarod Wilson f81b6d61b9
Create unique_id for sleepiq sensors (#65227) 2022-02-14 23:01:15 +01:00
Mick Vleeshouwer 74a304cac7
Overkiz/address cover feedback (#65043) 2022-02-14 22:38:41 +01:00
G Johansson 759b01bb40
Improve code quality season (#66449) 2022-02-14 22:34:33 +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
Erik Montnemery 5be5a014f3
Adjust Sonos for updated Spotify media browsing (#66508) 2022-02-14 20:15:09 +01:00
J. Nick Koston 09e59e5887
Fix flux_led turn on with slow responding devices (#66527) 2022-02-14 20:14:45 +01:00
Maikel Punie 2bcc21ecbb
Add velbus diagnostics (#65426) 2022-02-14 19:25:14 +01:00
Keilin Bickar 2bc2f85b1b
Support for lock domain in esphome (#65280) 2022-02-14 18:31:46 +01:00
uSlackr b6a3b012bb
Correct modbus address limits (#66367) 2022-02-14 18:17:19 +01:00
Marc Mueller ab67ba20f5
Update pylint plugin to validate `_async_has_devices` (#66512) 2022-02-14 18:10: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
Bart Janssens 4522a5698c
Fix vicare program presets (#66476) 2022-02-14 15:42:40 +01:00
Paulus Schoutsen 707f112f51
Improve raised exception consistency for media source (#66497) 2022-02-14 15:41:53 +01:00
Marc Mueller 94cfc89df9
Improve `DiscoveryFlowHandler` typing (#66511) 2022-02-14 15:28:52 +01:00
Franck Nijhof 45251e6936
Update sentry-dsk to 1.5.5 (#66515) 2022-02-14 15:23:20 +01:00
Paulus Schoutsen 4c5d64762b
Fix cast turn on image (#66500) 2022-02-14 14:38:46 +01:00
Shay Levy db73ce92fa
Increase switcher_kis timeouts (#66465) 2022-02-14 14:30:04 +01:00
J. Nick Koston 00d7fdd274
Add WiZ occupancy sensor support (#66231) 2022-02-14 14:25:15 +01:00
Marc Mueller b2ee7cebc9
Improve setup_time typing (#66509) 2022-02-14 14:24:58 +01:00
Erik Montnemery dbd26c7faf
Support browsing multiple Spotify accounts (#66256)
* Support browsing multiple Spotify accounts

* Fix rebase mistakes

* Address review comments

* Return root spotify node with config entries as children

* Add util to get spotify URI for media browser URL

* Only support browsing spotify with config entry specified
2022-02-14 13:59:11 +01:00
Marc Mueller 370832f527
Fix http typing (#66506) 2022-02-14 13:40:31 +01:00
Brett Adams 5a02bae63e
Bump Advantage Air 0.3.0 (#66488) 2022-02-14 13:16:05 +01:00
Marc Mueller c9d99ad76d
Add missing dataclass decorator [fivem] (#66505) 2022-02-14 12:51:52 +01:00
epenet 211b5b02df
Fix access to hass.data in hdmi-cec (#66504)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-14 12:43:36 +01:00
Shay Levy 5c5bb4835e
Enable assumed state in webostv media player (#66486) 2022-02-14 11:14:57 +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
GitHub Action ad0cb4831e [ci skip] Translation update 2022-02-14 00:15:30 +00:00
Shay Levy fe077b6990
Use shorthand attributes in webostv (#66418) 2022-02-13 23:47:37 +02:00
Daniel Hjelseth Høyer 36120c77f8
Reduce update_interval for Opengarage (#66478) 2022-02-13 15:41:46 -06:00
Joshua Roys bc2cc42955
Don't abort zeroconf discovery for IPv6-only devices (#66455) 2022-02-13 15:24:23 -06:00
J. Nick Koston 2bdf55465a
Bump pywizlight to 0.5.8 (#66448) 2022-02-13 14:29:34 -06:00
Jc2k 40c6832cc1
Update homekit_controller to use the new typed discovery data (#66462) 2022-02-13 12:45:30 -06:00
Allen Porter b016259206
Reset the stream backoff timeout when the url updates (#66426)
Reset the stream backoff timeout when the url updates, meant to improve the retry behavior
for nest cameras. The problem is the nest url updates faster than the stream reset time
so the wait timeout never resets if there is a temporarily problem with the new url. In particular
this *may* help with the flaky cloud nest urls, but seems more correct otherwise.
2022-02-13 07:09:37 -08:00
Aidan Timson ac3c5db989
Handle NoneType error in OVO integration (#66439) 2022-02-13 16:37:18 +02:00
Austin Mroczek b4c487376f
bump total_connect_client to 2022.2 (#66408) 2022-02-13 10:05:20 +02: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
GitHub Action 203bda203d [ci skip] Translation update 2022-02-13 00:16:41 +00:00
Robert Svensson ac11a9b7ff
Revert Amcrest change (#66412) 2022-02-12 23:08:23 +01:00
Allen Porter 2e54daa61f
Redact stream url credentials in debug logging (#66407) 2022-02-12 14:03:26 -08:00
Simone Chemelli e069074f9e
Fix mesh role for Fritz old devices (#66369) 2022-02-12 13:58:35 -08:00
Marc Mueller 1053314a30
Fix error decorator [sonos] (#66399) 2022-02-12 13:51:53 -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
Marc Mueller 7806494816
Fix typing [roku] (#66397) 2022-02-12 17:44:47 +01: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
Franck Nijhof ba83648d27
Fix Spotify session token refresh (#66386) 2022-02-12 17:13:32 +01:00
nklebedev 840d33f271
Fix typo in ebusd WaterPressure const (#66355) 2022-02-12 17:09:51 +01:00
Sébastien RAMAGE 491e2e5978
Update zigpy-zigate to 0.8.0 (#66289) 2022-02-12 17:05:30 +01:00
Joshua Roys e5ef192f1a
Specify specific Nanoleaf models in the manifest (#66326) 2022-02-12 09:56:38 -06:00
G Johansson d61d1bf494
Implement diagnostics for yale_smart_alarm (#65085) 2022-02-12 08:42:30 -06:00
G Johansson 6d20e68e6d
Code quality scrape (#65441) 2022-02-12 08:28:54 -06:00
Dave T 62d49dcf98
Fix missing refactors of EntityCategory.XXX (#66379)
* Fix missing refactors of EntityCategory.XXX

* Fix entity_category refactor for homewizard
2022-02-12 16:22:21 +02:00
G Johansson 89b0d602d6
Bump yalesmartalarmclient to v0.3.8 (#66381) 2022-02-12 15:20:55 +01:00
G Johansson 3771c154fa
Improve code quality command_line (#65333) 2022-02-12 08:19:37 -06:00
G Johansson db6969739f
Improve code quality telnet (#65239) 2022-02-12 08:15:28 -06:00
G Johansson 8da150bd71
Improve code quality sql (#65321) 2022-02-12 08:13:01 -06:00
Jc2k 65ce2108d3
Stop homekit_controller using backend specific API's (#66375) 2022-02-12 08:12:27 -06:00
Jc2k 95e4ea8fcd
Simplify the homekit_controller unignore journey (#66353) 2022-02-12 13:16:05 +00:00
Brett Adams 5e5659d758
Add Diagnostics (#65755) 2022-02-12 07:08:41 -06:00
G Johansson 1b27011320
Fix supported features sensibo (#65895)
* Fix features not available

* Partial revert

* Apply active features

* Fix from review
2022-02-12 12:48:48 +01: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
J. Nick Koston 578456bbb5
Fix uncaught exception during WiZ discovery during firmware update (#66358) 2022-02-11 20:42:41 -06:00
GitHub Action 366609ea44 [ci skip] Translation update 2022-02-12 00:16:37 +00:00
Sander Jochems 202ee0cd3d
Add device info to Solax (#65244) 2022-02-11 18:04:50 -06:00
G Johansson 9610fa5979
Code cleanup yale_smart_alarm (#65081) 2022-02-11 18:04:04 -06:00
Jeef d479949ca2
Add a base class for Intellifire entities (#65077)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-02-11 18:01:38 -06:00
J. Nick Koston a6742eff34
Add button to wake august locks from deep sleep (#66343) 2022-02-11 17:13:35 -06:00
PanicRide 0797533016
New amcrest binary sensor to monitor doorbell button (#66302)
* New binary sensor to monitor doorbell button

* New binary sensor to monitor doorbell button
2022-02-11 23:58:26 +01:00
Joshua Roys 9134e5c844
Get discovered zeroconf IPv6 addresses (#65462) 2022-02-11 16:46:17 -06:00
Igor Pakhomov 2ffb46dc93
Initial xiaomi_miio support for dmaker.airfresh.a1/t2017 (#66331)
* Initial support for dmaker.airfresh.a1/t2017

* fix typo
2022-02-11 23:28:22 +01:00
J. Nick Koston cc0fb5d9db
Add dhcp discovery to Sensibo for non-HomeKit devices (#66350) 2022-02-11 16:27:00 -06:00
J. Nick Koston f8fec3d990
Add additional oui to blink (#66348) 2022-02-11 16:26:39 -06:00
J. Nick Koston 018975bbb9
Add additional OUI for G3 wifi cameras to unifiprotect (#66349) 2022-02-11 16:26:11 -06:00
J. Nick Koston 43d57e7ae8
Add unique id to lutron caseta config entry when missing (#66346) 2022-02-11 13:19:57 -08:00
Allen Porter 24418417fd
Fix nest streams that get stuck broken (#66334) 2022-02-11 13:17:19 -08:00
Stuart Clark 5743661f6e
Upgrade OVO library to v1.2.0 (#66210) 2022-02-11 21:39:55 +01: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
epenet df994a1e84
Fix raspihats initialization (#66330)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-11 18:08:19 +01:00
J. Nick Koston 323af9f59c
Reduce number of parallel api calls to august (#66328) 2022-02-11 18:07:32 +01:00
Franck Nijhof acf2033734
Use DataUpdateCoordinator for Spotify devices (#66314) 2022-02-11 18:04:49 +01:00
Franck Nijhof 57624347e6
Don't requests known Spotify playlist (#66313) 2022-02-11 17:53:25 +01:00
J. Nick Koston 768de8d515
Fix WiZ bulb being offline if kelvin limits cannot be obtained (#66305) 2022-02-11 09:33:39 -06:00
starkillerOG 212c3b7c10
bump motionblinds to 0.5.12 (#66323) 2022-02-11 16:49:54 +02: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
Maikel Punie 1c087f5c70
Bump velbusaio to 2022.2.4 (#66321) 2022-02-11 15:48:32 +02:00
Franck Nijhof 11a13aa0b8
Add heating and cooling binary sensors to Plugwise (#66317) 2022-02-11 13:36:27 +01:00
Stefán Jökull Sigurðarson 6c3b36a978
Add Icelandic to list of supported Azure languages (#66310)
It was missing, as it is a supported language as per the list here: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/language-support#text-to-speech
2022-02-11 12:53:09 +01:00
ufodone 49a41ebe14
Disable zone bypass switch feature (#66243)
* Add configuration option to disable the creation of zone bypass switches

* Removed temporary workaround and bumped pyenvisalink version to pick up the correct fix.

* Remove zone bypass configuration option and disable zone bypass switches per code review instructions.
2022-02-11 11:38:50 +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
Jens Østergaard Nielsen a644baf3cd
Prepare for Ihc config flow (#64852)
* Extracting group and extra  info from ihc products

* Make suggested area not optional

* Revert back to assignment expression :=

* Make auto setup show device info for all platforms

* Change code comment to #

* Add return typing

* Remove device_info key without value

* get_manual_configuration typings for everything

* Adding IHCController typings

* Remove "ihc" from unique id

* Remove device_info

* Separator in unique id

* Return typing on ihc_setup

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

* Update homeassistant/components/ihc/ihcdevice.py

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

* Update homeassistant/components/ihc/ihcdevice.py

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

* Raise ValueError instead of logging an error

* Update homeassistant/components/ihc/service_functions.py

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

* Catch up with dev

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-11 10:24:31 +01:00
J. Nick Koston 43671da7cf
Fix august token refresh when data contains characters outside of latin1 (#66303)
* WIP

* bump version

* bump
2022-02-11 11:15:50 +02:00
Allen Porter 122ada718a
Bump google-nest-sdm to 1.7.1 (minor patch) (#66304) 2022-02-11 11:13:00 +02:00
GitHub Action bed5002d61 [ci skip] Translation update 2022-02-11 00:14:55 +00:00
J. Nick Koston cb2e486f6e
Guard against 0 value for color temp in WiZ when turning off (#66295) 2022-02-10 18:12:36 -06:00
Joakim Plate c1760683a0
Add diagnostics for philips_js (#66233)
* Add diagnostics for philips_js

* Update homeassistant/components/philips_js/diagnostics.py

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

* Update homeassistant/components/philips_js/diagnostics.py

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* Also redact username/password

They are really not that secret, but seem logical.

* Redact unique id

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-02-10 22:11:40 +01:00
Joakim Plate ad09e875a6
Correct philips_js usage of the overloaded coordinator (#66287) 2022-02-10 21:59:42 +01:00
jjlawren 4d944e35fd
Skip polling Sonos audio input sensor when idle (#66271) 2022-02-10 12:48:13 -08:00
Franck Nijhof c6f3c5da79
Type Spotify hass data (#66285) 2022-02-10 12:38:33 -08:00
J. Nick Koston c91a20537a
Add discovery on network up to WiZ (#66144) 2022-02-10 12:30:18 -08:00
uvjustin c222be0958
Catch ConnectionResetError when writing MJPEG in camera (#66245) 2022-02-10 12:25:31 -08:00
jjlawren 9fa2bdd3fd
Handle more Sonos favorites in media browser (#66205) 2022-02-10 12:25:07 -08:00
Paulus Schoutsen 854d7d4936
Fix shutil import for local source (#66286) 2022-02-10 12:23:41 -08:00
jjlawren e86c82e675
Tweak Sonos activity monitoring (#66207)
* Tweak Sonos activity monitoring

* Support new 'sleeping' vanish reason
* Check availability before last-ditch check
* Use short-timeout call for last-ditch check
* Adjust reboot logging message and severity

* Simplify activity check failure
2022-02-10 14:11:47 -06: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 dc7ab40acd
Add humidity sensor to Plugwise (#66280) 2022-02-10 20:54:09 +01:00
Franck Nijhof fbd6e9f498
Extend Plugwise climate support (#66278) 2022-02-10 20:53:14 +01:00
Aaron Bach e5eba88ecc
Clean up unnecessary branch in SimpliSafe (#66268) 2022-02-10 10:13:26 -07:00
Franck Nijhof b8253b1b47
Plugwise HVAC/Preset mode fixes (#66273) 2022-02-10 18:10:21 +01:00
Franck Nijhof 18056325bb
Add Flame State binary sensor to Plugwise (#66275) 2022-02-10 18:09:38 +01:00
Franck Nijhof 08ab00d3ab
More cleanup in Plugwise sensor (#66274) 2022-02-10 18:09:24 +01:00
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
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
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
Erik Montnemery 7cc6770f83
Revert "Make idle chromecasts appear as idle instead of off" (#66005) 2022-02-07 20:24:30 +01:00
Franck Nijhof 4732e37005
Remove passing loop into sleep in SamsungTV (#66030) 2022-02-07 20:08:54 +01:00
J. Nick Koston 721d711762
Add firmware and hardware version to WiZ (#66017) 2022-02-07 19:23:08 +01:00
G Johansson 480ce84b8a
Improve code quality filesize (#65240) 2022-02-07 11:59:06 -06:00
Erik Montnemery 910b1f1ec8
Speed up deletion of duplicated statistics (#66014) 2022-02-07 09:11:52 -08:00
J. Nick Koston ace74279f1
Move WiZ socket ident to upstream lib (#65958) 2022-02-07 17:44:52 +01:00