Commit Graph

43823 Commits (7c6297db86bfa2916cf3bdce7d921596cd21cac8)

Author SHA1 Message Date
epenet b6909feb8b
Add init type hints [n-o] (#63190)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 13:39:38 -08:00
epenet d57c54c93e
Add init type hints [f-g] (#63186)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-01 13:38:11 -08: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 Porter 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
Maciej Bieniek 8af545a4e3
Add new buttons for Shelly Gas (#63099)
* Add self test/mute/unmute buttons

* Improve doctrings

* Improve test coverage

* Add supported property to ShellyButtonDescription

* Change icon
2022-01-01 21:42:17 +02:00
Steffen Zimmermann 9ead2c7148
Improve wiffi config flow handling (#63167)
Don't use `async_set_unique_id` and `_abort_if_unique_id_configured`
because TCP port number is not a unique id.

Use `_async_abort_entries_match` instead.
2022-01-01 20:36:45 +01:00
Allen Porter 81aff973ea
Keep entity state management within entity (#63183)
Simplify the entity state management for webrtc providers, incurring
extra state writes on startup.  Followup post-review comments for PR #62962
2022-01-01 11:22:48 -08:00
Dave T 0410c205ca
Move constants to const file for generic (#63179) 2022-01-01 10:57:56 -08:00
Daniel Hjelseth Høyer 8bf6aba1cf
Mill use walrus operator (#63166)
* Mill use walrus operator

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

* Mill use walrus operator

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-01-01 13:11:56 +01:00
stegm 0a0ca233c5
Add entity categories. (#63165) 2022-01-01 12:45:24 +01:00
GitHub Action 93758e2e6c [ci skip] Translation update 2022-01-01 00:14:34 +00:00
Daniel Hjelseth Høyer 4f6b2e6e1c
Bump mill-local to 0.1.1 and add device info (#63141) 2021-12-31 12:33:50 -10: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
Allen Porter b17120a511
Bump google-nest-sdm to 1.2.1 (#63151) 2021-12-31 10:11:00 -10:00
Daniel Hjelseth Høyer 3ea2b7d89f
Mill, add HVAC_MODE_OFF for gen 3 heaters (#63134)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-31 12:06:05 -08: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
Mick Vleeshouwer 4eb077b6b4
Enable strict typing for Overkiz integration (#63108) 2021-12-31 07:35:15 -10:00
Daniel Hjelseth Høyer 0da53bad90
Update Adax-local to 0.1.3 (#63129)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-31 14:18:06 +01:00
Franck Nijhof c5d8792c34
Cleanup switch light (#63127) 2021-12-31 12:47:16 +01:00
Franck Nijhof 78442d82d1
Add color mode support to switch light (#63124) 2021-12-31 11:43:59 +01:00
jjlawren 2172679f41
Make Sonos alarm `unique_id` unique with multiple households (#62645) 2021-12-31 11:10:10 +01:00
Milan Meulemans cdd54b365a
Remove deprecated Connection class from octoprint ConfigFlow (#63117) 2021-12-31 11:06:30 +01:00
epenet 04e8e84058
Add init type hints [e] (#63102)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-31 11:05:44 +01:00
Andre Lengwenus 7b9e643536
Bump pypck to 0.7.12 (#63119) 2021-12-31 11:01:59 +01:00
Allen Porter 4c46cf79c4
Bump google-nest-sdm to 1.2.0 (#63121) 2021-12-31 10:43:11 +01:00
epenet 545e321002
Add init type hints [a] (#63098)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 21:17:05 -08:00
Marcel van der Veldt 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
Christopher Bailey ebe9853e6f
Bumps pyunifiprotect to 1.4.8 (#63113) 2021-12-30 16:17:32 -10:00
GitHub Action f205708e56 [ci skip] Translation update 2021-12-31 00:14:15 +00:00
Simone Chemelli 6725e4033c
Use mesh topology and add 3 more attr for Fritz (#63049)
* Use mesh topology and add 3 more attr

* Apply review comment
2021-12-30 23:23:55 +01:00
Franck Nijhof 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
epenet 9971831b51
Improve typing in core service registration (#63005)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 21:18:10 +01:00
Clifford Roche 1320f27fd7
Bump greeclimate to 1.0.1 (#63092) 2021-12-30 21:15:59 +01:00
epenet 803eaa8e22
Ensure admin service calls are typed (#63093)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 21:12:40 +01:00
Simone Chemelli 34e732ebc1
Add hw info for Shelly devices (#62643)
* Add hw info for Shelly devices

* Better rappresentation

* Remove date parsing

* Added model as requested
2021-12-30 20:08:29 +01:00
uvjustin 849dc0e53a
Use original PyAv in stream (#63079) 2021-12-30 10:54:25 -08:00
Franck Nijhof 540ccc37b5
Use StrEnum in Tuya constants (#63073) 2021-12-30 20:23:27 +02:00
epenet f724aea0bb
Ensure service calls are typed [a-j] (#63013)
* Ensure service calls are typed [a-j]

* Adjust apns

* Adjust arlo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 18:50:51 +01:00
Maciej Bieniek c0b9a34901
Bump library to version 1.0.7 (#63078) 2021-12-30 19:45:09 +02:00
Simone Chemelli c2938c50c3
Fix unique id for Fritz buttons (#63072)
* Fix unique id for Fritz buttons

* Apply review comment
2021-12-30 17:44:02 +01:00
Simone Chemelli c27e4feff6
Refresh device_info for Shelly devices (#62899)
* Rework device_info

* Update device_info via registry

* Optimized checks: only when needed

* Revert device_info rework as not needed

* Fix reboot detection for all scenarios

* Final optimization

* Remove leftover

* Bump aioshelly

* Bump fritzconnection and remove workarounds

* Cleanup fritzbox_callmonitor

* Rework device_info

* Update device_info via registry

* Optimized checks: only when needed

* Revert device_info rework as not needed

* Fix reboot detection for all scenarios

* Final optimization

* Remove leftover

* Update homeassistant/components/shelly/utils.py

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

* Update homeassistant/components/shelly/__init__.py

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

* Revert slipped in commit

* Rename param

* Apply review comment

* Apply comment review #2

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2021-12-30 15:37:28 +01:00
Mick Vleeshouwer 8599ddf51e
Address feedback to Overkiz integration (round 2) (#63036)
* Address feedback in multiple files

* Add missing return statement

* Improve sensor descriptions

* Improve typing

* Move to new device registry

* Disable RSSI sensor by default

* Improve typing
2021-12-30 15:22:35 +01:00
Marc Mueller 52ca06c750
CI: Fix pip cache restore key (#63075) 2021-12-30 14:09:18 +01:00
Simone Chemelli da24b7ce2f
Bump fritzconnection and remove workarounds (#63050)
* Bump fritzconnection and remove workarounds

* Cleanup fritzbox_callmonitor
2021-12-30 12:53:54 +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