Commit Graph

10000 Commits

Author SHA1 Message Date
Erik Montnemery
80da5c52ae Correct cast media browse filter for audio groups (#65288) 2022-01-31 11:45:48 +01:00
Erik Montnemery
b0c36d7729 Add cast platform for extending Google Cast media_player (#65149)
* Add cast platform for extending Google Cast media_player

* Update tests

* Refactor according to review comments

* Add test for playing using a cast platform

* Apply suggestions from code review

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>

* Pass cast type instead of a filter function when browsing

* Raise on invalid cast platform

* Test media browsing

Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-01-31 10:50:05 +01:00
Jan Bouwhuis
6fdaec0847 Add MQTT siren platform (#64440)
* Add mqtt siren draft

* fix tests

* Intergrate notify platform

* tests and fixes siren platform

* Add tests notify platform

* config parameters and abbreviations

* remove duplicate key

* undo move topic abbreviation

* Move const CONF_MESSAGE_COMMAND_TEMPLATE

* Remove notify service integration

* Rework

* Update homeassistant/components/mqtt/siren.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Publish JSON by default

* Allow unknown state - rename value_template

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-01-31 10:31:57 +01:00
Jan Bouwhuis
bfaada34e2 Allow unknown state to be set (#65183) 2022-01-31 10:25:08 +01:00
J. Nick Koston
8c9bd6e790 Increase august timeout and make failure to sync at startup non-fatal (#65281) 2022-01-30 20:50:49 -08:00
J. Nick Koston
2f6bf08165 Fix senseme fan lights (#65217) 2022-01-30 20:24:42 -08:00
J. Nick Koston
73bd8db273 Fix flux_led not generating unique ids when discovery fails (#65250) 2022-01-30 20:17:19 -08:00
Matthias Alphart
d4370395e2 Update xknx to 0.19.1 (#65275) 2022-01-30 20:12:44 -08:00
Jc2k
58b8c30221 Improve homekit_controller tests (#65266) 2022-01-30 16:59:39 -06:00
Jc2k
eb94fe1ca7 Use upstream constants when defining homekit service to platform mapping (#65272) 2022-01-30 16:59:01 -06:00
Aaron Bach
58f624a3da Add diagnostics to SimpliSafe (#65171)
* Add diagnostics to SimpliSafe

* Bump

* Cleanup
2022-01-30 15:37:56 -07:00
Jc2k
cc94af2872 Remove deprecated helper functions from homekit_controller pairing flow (#65270) 2022-01-30 16:20:19 -06:00
J. Nick Koston
62fd31a1e7 Handle missing attrs in whois results (#65254)
* Handle missing attrs in whois results

- Some attrs are not set depending on where the
  domain is registered

- Fixes #65164

* Set to unknown instead of do not create

* no multi-line lambda
2022-01-30 13:19:04 -08:00
Aaron Bach
78ad49325d Clean up SimpliSafe config flow tests (#65167)
* Clean up SimpliSafe config flow tests

* Cleanup
2022-01-30 13:12:01 -08:00
Shay Levy
9825111c8d Fix webostv live TV source missing when configuring sources (#65243) 2022-01-30 22:05:30 +01:00
josephnad
75b37bee3d Add homekit_controller support for ecobee vendor extensions (#60914)
Co-authored-by: josephnad <>
2022-01-30 15:02:47 -06:00
Robert Svensson
30440cd1ba Add logic to avoid creating the same scene multiple times (#65207) 2022-01-30 01:11:28 +02:00
Patrik Lindgren
3ca1b2fc6e Add air quality sensor for Tradfri air purifier (#65070)
* Add air quality sensor for Tradfri fan platform

* Refactor, use entity description

* Fix typo

* CHange init docstring

* Let lambda handle special case

* Remove unique id

* Apply suggestions from code review

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

* Refactor to constants, add mixin

* Rename lambda

* Update homeassistant/components/tradfri/sensor.py

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

* Update homeassistant/components/tradfri/sensor.py

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

* Update homeassistant/components/tradfri/sensor.py

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

* Replace lambda with function

* Refactor device init

* Remove fixture scope

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-29 23:55:05 +01:00
Aaron Bach
cc6b0cc843 Ensure diagnostics redaction can handle lists of lists (#65170)
* Ensure diagnostics redaction can handle lists of lists

* Code review

* Update homeassistant/components/diagnostics/util.py

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

* Code review

* Typing

* Revert "Typing"

This reverts commit 8a57f772caa5180b609175591d81dfc473769f70.

* New typing attempt

* Revert "New typing attempt"

This reverts commit e26e4aae69f62325fdd6af4d80c8fd1f74846e54.

* Fix typing

* Fix typing again

* Add tests

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-29 13:30:15 -07:00
Robert Hillis
4a042e7d73 Bump pyefergy to 22.1.1 (#65156)
* Bump pyefergy to 22.1.0

* uno mas

* uno mas

* uno mas
2022-01-29 16:01:00 +02:00
Marvin Wichmann
98aa69fdaf Fix KNX Expose for strings longer than 14 bytes (#63026)
* Fix KNX Expose for too long strings

* Fix tests

* Catch exception and avoid error during config entry setup for exposures

* Properly catch exceptions in knx expose

* Fix pylint

* Fix CI

* Add test for conversion error
2022-01-29 14:32:12 +01:00
Simon Hansen
049fc8a945 Add config flow to ISS integration (#64987)
* Initial commit

* Wrong flowhandler name

* Add config flow tests

* Tests for config flow

* ...

* Add test for no coordinates

* ...

* Update homeassistant/components/iss/config_flow.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Update homeassistant/components/iss/config_flow.py

* Update homeassistant/components/iss/binary_sensor.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

* Add myself as codeowner

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-01-29 11:41:26 +02:00
J. Nick Koston
e85e91bdb0 Fix uncaught exception during isy994 dhcp discovery with ignored entry (#65165) 2022-01-28 21:14:30 -08:00
Simone Chemelli
3da33679a2 Fritz tests cleanup (#65054) 2022-01-28 21:06:19 -08:00
Allen Porter
956ceb6c68 Update nest diagnostics (#65141) 2022-01-28 21:50:38 +01:00
Allen Porter
0c9be604c2 Add diagnostics for rtsp_to_webrtc (#65138) 2022-01-28 09:07:41 -08:00
epenet
d0d55db936 Add diagnostics support to onewire (#65131)
* Add diagnostics support to onewire

* Add tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-28 19:00:47 +02:00
Nenad Bogojevic
1a878b4024 Use new withings oauth2 refresh token endpoint (#65134) 2022-01-28 08:48:16 -08:00
Robert Svensson
da355438aa Reconnect client service tried to connect even if device didn't exist (#65082) 2022-01-28 08:33:31 -08:00
Shay Levy
efbbef5922 Fix Shelly detached switches automation triggers (#65059) 2022-01-28 08:30:44 -08:00
Paulus Schoutsen
cf6b3fc810 Add support for proxy-selected intent (#65094) 2022-01-28 08:16:28 -08:00
Klaas Schoute
090a8a9439 Add diagnostics support to P1 Monitor (#65060)
* Add diagnostics to P1 Monitor

* Add test for diagnostics
2022-01-28 17:08:29 +02:00
Erik Montnemery
dccc4eba76 Remove artifacts from black formatting (#65113)
* Remove artifacts from black formatting

* Tweak
2022-01-28 17:00:01 +02:00
Joakim Sørensen
0a2f57e4f8 Move netatmo dataclass registrations (#65052) 2022-01-28 10:51:32 +01:00
Marvin Wichmann
62584b4813 Add tests for KNX diagnostic and expose (#64938)
* Add test for KNX diagnostic

* Add test for KNX expose

* Apply review suggestions
2022-01-27 23:03:20 +01:00
Jc2k
f49cfe866a Support unpairing homekit accessories from homekit_controller (#65065) 2022-01-27 16:02:30 -06:00
epenet
d706a7bbde Update Renault to 0.1.7 (#65076)
* Update Renault to 0.1.7

* Adjust tests accordingly

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-27 20:19:28 +01:00
Erik Montnemery
30fd902764 Correct zone state (#65040)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-27 10:01:09 -08:00
Jc2k
a65694457a Allow homekit_controller to set Ecobee's mode (#65032) 2022-01-27 11:02:38 -06:00
Patrik Lindgren
70321ed795 Add battery sensor for Tradfri blinds (#65067) 2022-01-27 17:47:47 +01:00
Chris Talkington
e0d970c739 Update rokuecp to 0.12.0 (#65030) 2022-01-27 10:43:23 -06:00
Jc2k
603d0fb068 Allow homekit_controller to customise Ecobee home/sleep/away thresholds (#65036) 2022-01-27 10:41:53 -06:00
Jc2k
9799965c62 Better names for energy related homekit_controller sensors (#65055) 2022-01-27 10:08:26 -06:00
alim4r
ca469750ac Prometheus tests simulate entities (#64916) 2022-01-27 15:56:12 +01:00
Patrik Lindgren
9d404b749a Implement coordinator class for Tradfri integration (#64166)
* Initial commit coordinator

* More coordinator implementation

* More coordinator implementation

* Allow integration reload

* Move API calls to try/catch block

* Move back fixture

* Remove coordinator test file

* Ensure unchanged file

* Ensure unchanged conftest.py file

* Remove coordinator key check

* Apply suggestions from code review

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

* Import RequestError

* Move async_setup_platforms to end of setup_entry

* Remove centralised handling of device data and device controllers

* Remove platform_type argument

* Remove exception

* Remove the correct exception

* Refactor coordinator error handling

* Apply suggestions from code review

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

* Remove platform type from base class

* Remove timeout context manager

* Refactor exception callback

* Simplify starting device observation

* Update test

* Move observe start into update method

* Remove await self.coordinator.async_request_refresh()

* Refactor cover.py

* Uncomment const.py

* Add back extra_state_attributes

* Update homeassistant/components/tradfri/coordinator.py

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

* Refactor switch platform

* Expose switch state

* Refactor sensor platform

* Put back accidentally deleted code

* Add set_hub_available

* Apply suggestions from code review

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

* Fix tests for fan platform

* Update homeassistant/components/tradfri/base_class.py

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

* Update homeassistant/components/tradfri/base_class.py

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

* Fix non-working tests

* Refresh sensor state

* Remove commented line

* Add group coordinator

* Add groups during setup

* Refactor light platform

* Fix tests

* Move outside of try...except

* Remove error handler

* Remove unneeded methods

* Update sensor

* Update .coveragerc

* Move signal

* Add signals for groups

* Fix signal

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-27 11:12:52 +01:00
Jan Bouwhuis
0cabf3e577 Fix MQTT climate action null warnings (#64658) 2022-01-27 08:41:27 +01:00
Jesse Hills
cb2f5b5ed5 Add diagnostics download to ESPHome (#65008) 2022-01-26 14:35:41 -08:00
Erik Montnemery
67838518ab Abort owntracks config flow when not connected to home assistant cloud (#64968) 2022-01-26 11:07:34 -08:00
Erik Montnemery
664be84121 Abort plaato flows when not connected to home assistant cloud (#64969) 2022-01-26 11:07:26 -08:00
jjlawren
e17f1ea577 Support Plex in Sonos media browser (#64951)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-26 10:40:47 -08:00