Commit Graph
10619 Commits
Author SHA1 Message Date
Dave T 89895c6c04 Improve tests for generic camera (#63197)
* Improve tests for generic camera

* Fix black error

* Code review: Move common code to fixtures

* Remove unnecessary patches from tests.

* Address review comments

* Code review: swap more patches for respx

* Code review: use _attr for frame interval.
2022-01-02 13:26:44 -08:00
Allen Porter 9e3f7d2961 Simplify nest reauth config flow (#63058) 2022-01-02 21:43:50 +01:00
J. Nick Koston 7de4801bfa Add support for oncue connectivity binary sensor (#63232) 2022-01-02 21:36:14 +01:00
Christopher Bailey d364186571 Add UniFi Protect number platform (#63220) 2022-01-02 09:47:25 -10:00
J. Nick Koston 724f5dbf1a Add Oncue by Kohler integration (#63203) 2022-01-02 09:15:39 -10:00
Allen Porter 15baea4ba3 Use more narrow exception catching in nest (#63225) 2022-01-02 18:54:56 +01:00
epenetandepenet 24e27290b5 Drop deprecated CONF_NAMES from onewire (#61094)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:10:19 +01:00
Allen Porter ebc8e19788 Revert nest reloading due to lock up (#63206) 2022-01-02 17:08:38 +01:00
Christopher Bailey e5b7eac411 Add UniFi Protect switch platform (#63177) 2022-01-01 11:23:10 -10:00
Dave T 817f0c9aae Refactor enum zwave js tests (#62712)
* Use new enums in zwave_js tests

* Convert == to is

* Refactor some ATTR_ * as well.

* Address review comments
2022-01-01 21:50:48 +01:00
Allen PorterandJ. Nick Koston c7b991f56b Add rtsptowebrtc integration (#59660)
* Add initial version of the webrtc integration

Add the webrtc integration. This integration proxies the
signal 'offer' from the client to a RTSPtoWebRTCP server that
returns an 'answer'.

The RTSPtoWebRTC server is a go binary based on pion, and this is
what is currently used by the WebRTC custom_component:
https://github.com/AlexxIT/WebRTC
https://github.com/deepch/RTSPtoWebRTC

* Readability improvements for webrtc

* Reach 100% test coverage

* Use rtsp-to-webrtc client library package

* Rename webrtc to rtstptowebrtc

This is to reflect naming as one type of approach to webrtc since other webrtc integrations would look very different.

* Remove internal quality scale

* Bump rtsptowebrtc to support heartbeats

* Shorten server url variable and remove const.py

* Add config flow validation for RTSPtoWebRTC server

* Add RTSPtoWebRTC server health checks

* Accept translation suggestion

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update rtsptowebrtc to use new camera registry API

Update rtsptowebrtc to use new API added in #62962

* Remove unused variable

* Fix lint and typing errors for python 3.8

* Rename to rtsp_to_webrtc to follow standards

* Use async_on_unload for unsubscribing camera webrtc provider

* Remove unnecessary translations in config flow

* Remove unnecessary configuration setup

* Cleanup test setup and typing

* Patch integration setup to avoid starting the whole integration

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-01 12:36:31 -08:00
Daniel Hjelseth Høyer 8e5c8c516d Adax, unique id and title should be string (#63132) 2021-12-31 12:22:47 -10:00
Christopher Bailey b379acc119 Clean up patching of setup platforms for UniFi Protect integration (#63156) 2021-12-31 12:20:23 -10:00
Allen Porter 0dee4f85f0 Implement an rtsp to webrtc registry in camera (#62962)
* Implement a webrtc to rtsp support in camera as a registry

Allow integrations to register a provider that can convert an RTSP stream and WebRTC offer to a WebRTC answer. This is
planned to be used by the RTSPtoWebRTC server integration as an initial pass, but could
support other server implementations as well (or even native implementationf or that matter).

* Fix test bug to improve test covergae and restructure statements

* Add missing call to refresh webrtc providers

* Run provider refresh in parallel since it may send RPCs

* Replace for loop with any

* Fix pylint warning to use a generator
2021-12-31 13:44:33 -08:00
Christopher Bailey 0de3a299d6 Add UniFi Protect light platform (#63137) 2021-12-31 11:21:29 -10:00
Maikel Punie d7f0ad29df Add velbus USB dicovery (#62596) 2021-12-31 09:44:35 -10:00
Shay Levy c65a50bd2e Fix Shelly error fetching device triggers for sleeping devices (#63103) 2021-12-31 18:47:03 +01:00
Franck Nijhof 78442d82d1 Add color mode support to switch light (#63124) 2021-12-31 11:43:59 +01:00
Marcel van der VeldtandPaulus Schoutsen 055fb99938 Hue allow per-device availability override (#63025)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-30 20:46:52 -08:00
Franck NijhofandDave T b5300fb32e Add configuration flow to Whois (#63069)
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2021-12-30 22:42:46 +01:00
Sebastian Lövdahl 0a95b2c591 Vallox config flow follow-up fixes (#63032)
* Vallox config flow follow-up fixes

* Fix logging

* Get documentation URL from manifest

* Feedback fixes
2021-12-30 11:58:36 +01:00
epenetandepenet e3c1a3567e Fix local_file partial tests (#63023)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-29 16:52:23 -10:00
Marvin Wichmann b9247f3952 Fix local_ip handling in KNX options flow (#62969) 2021-12-30 01:13:58 +01:00
Christopher Bailey 02e59b2f38 Fixes UniFi Protect reconnect issues (#63047) 2021-12-29 12:39:55 -10:00
Franck Nijhof c6230fef08 Add full test coverage to CPU Speed (#63042) 2021-12-29 22:59:14 +01:00
Christopher Bailey 699512c36f Add UniFi Protect button (#63001) 2021-12-29 09:38:44 -10:00
Christopher Bailey b31041698f Feedback from previous PR (#63022) 2021-12-29 08:39:45 -10:00
Allen Porter 788373a7ca Update legacy nest config flow tests to use modern best practices (#63019)
* Update legacy nest tests to use modern best practices

Update legacy nest integration config flow tests to test the config flow actually through the integration APIs rather
than interacting with the config flow object directly. This is a pre-factoring pulled out of a larger config flow revamp
where we want to exercise the actual production code for initializing configuration, config flows, and authentication
implementations.

* Revert some test name/comment changes

* Update setup calls to verify async_setup_legacy is called
2021-12-29 10:38:50 -08:00
Allen Porter 23384ee1e8 Update stream errors with additional error information (#62900) 2021-12-29 18:57:14 +01:00
Franck Nijhof 2f7fa962b4 Detect unsupported system in CPU Speed integration (#63012) 2021-12-29 18:54:47 +01:00
Mirko LenzandMarvin Wichmann ab4effc7e2 Allow sending GroupValueResponse telegrams with knx.send service (#62639)
* Add knx.respond service

* Combine knx.send and knx.respond services

* Rename knx attribute and fix tests

* Use parametrization in tests

Co-authored-by: Marvin Wichmann <marvin.wichmann@unic.com>
2021-12-29 18:15:48 +01:00
Marcel van der Veldt 497bfc1c8f Normalize Hue colortemp if value outside of bounds (#62998) 2021-12-29 15:13:52 +01:00
Marcel van der Veldt c5bdf858a8 Fix short flash effect in Hue integration (#62988) 2021-12-29 14:21:38 +01:00
Allen Porter 2df0adfbc7 Reload nest integration when new devices are added (#62976) 2021-12-29 12:20:55 +01:00
Christopher Bailey 490d76e01e Add UniFi Protect media_player (#62895) 2021-12-28 18:36:18 -10:00
Alexei Chetroi b54f2c9487 Don't throw when a Zigbee device has an unknown ZCL cluster (#62964)
* Fix channel name for clusters with None ep_attribute

* Correctly generate entity name based on channel names
2021-12-28 21:04:11 -05:00
Franck Nijhof 4fe62a251d Rename Luftdaten -> Sensor.Community (#62865) 2021-12-28 21:40:00 +01:00
Franck Nijhof 5ab527e59c Add configuration flow to CPU Speed (#62929) 2021-12-28 21:17:53 +01:00
Sebastian Lövdahl b5fd2e0d58 Convert Vallox integration to config flow (#62780) 2021-12-28 10:06:29 -10:00
Franck Nijhof 90a9d64f67 Add reauthentication handling to PVOutput (#62932) 2021-12-28 17:28:35 +01:00
Pascal ReebandMartin Hjelmare 1af3177466 Fix unique_id of nuki config entry (#62840)
* fix(nuki): fixed naming of nuki integration

* parse_id function

* migration path

* fixes from ci runs

* don't update title if it was changed

* move to dedicated helper

* use dict of params

* Update homeassistant/components/nuki/__init__.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 23:02:48 +01:00
Mick Vleeshouwer b9ce82f79c Add unique id to DHCP step in Config Flow for Overkiz (#62847) 2021-12-27 11:28:18 -10:00
Franck NijhofandMartin Hjelmare 1cfeb404b6 Add configuration flow to PVOutput (#62667)
* Add configuration flow to PVOutput

* Update homeassistant/components/pvoutput/sensor.py

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

* Update homeassistant/components/pvoutput/sensor.py

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

* Use account URL placeholder

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 22:05:10 +01:00
Florent ThoumieandJ. Nick Koston 3c2d5d5f8c Update to iaqualink 0.4.1 (#53745)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-27 10:20:55 -10:00
Amos Yuen 45ab9a3e33 Init template trigger binary sensor to None instead of False (#62769) 2021-12-27 20:52:26 +01:00
Allen Porter 17fbfe2eed Set a suggested_area on nest devices based on the Google Home room name (#62871) 2021-12-27 11:39:57 -08:00
corneyl 7fc5605639 Fix keyerror when no previous Picnic orders exist (#62870) 2021-12-27 20:31:35 +01:00
1f425b1942 Improve Elmax code quality (#61273)
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 19:50:43 +01:00
G Johansson 0d957ad93b Code improvements Sensibo (#62810) 2021-12-27 08:34:00 -10:00
corneyl b0704c190f Fix picnic sensor time unit (#62437) 2021-12-27 17:44:45 +01:00