Commit Graph
33847 Commits
Author SHA1 Message Date
Allen Porter b33753f334 Move camera timeouts to constants (#46262)
Addresses feedback from pr #45431.  Also removes an redundant `create_stream` timeout.
2021-02-08 21:21:14 -08:00
Allen PorterandPaulus Schoutsen 2bcf87b980 Change the API boundary between camera and stream with initial improvement for nest expiring stream urls (#45431)
* Change the API boundary between stream and camera

Shift more of the stream lifecycle management to the camera.  The motivation is to support stream urls that expire
giving the camera the ability to change the stream once it is created.

* Document stream lifecycle and simplify stream/camera interaction

* Reorder create_stream function to reduce diffs

* Increase test coverage for camera_sdm.py

* Fix ffmpeg typo.

* Add a stream identifier for each stream, managed by camera

* Remove stream record service

* Update homeassistant/components/stream/__init__.py

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

* Unroll changes to Stream interface back into camera component

* Fix preload stream to actually start the background worker

* Reduce unncessary diffs for readability

* Remove redundant camera stream start code

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-08 19:53:28 -08:00
Pascal Reeb 889baef456 Add DHCP discovery support to Nuki integration (#46032) 2021-02-08 17:11:27 -10:00
HomeAssistant Azure 936ee7d733 [ci skip] Translation update 2021-02-09 00:07:22 +00:00
J. Nick Koston 6563c37ab1 Add support for generic lights to bond (#46193) 2021-02-09 00:39:21 +01:00
J. Nick Koston 93fafedf72 Cleanup bond identifiers and device info (#46192) 2021-02-09 00:37:32 +01:00
Erik Montnemery 58b4a91a5b Test that variables are passed to wait_for_trigger script action (#46221) 2021-02-09 00:34:18 +01:00
Paulus Schoutsen 0ddc7d90a4 Merge pull request #46249 from home-assistant/rc 2021.2.2 2021-02-09 00:28:15 +01:00
tkdrob c602c619a2 Use core constants for hikvision (#46247) 2021-02-09 00:13:58 +01:00
Paulus Schoutsen 6ec49c696c Bumped version to 2021.2.2 2021-02-08 22:37:01 +00:00
J. Nick Koston c02870686a Handle empty mylink response at startup (#46241) 2021-02-08 22:36:54 +00:00
Álvaro Fernández Rojas 387301f024 Fix Tado Power and Link binary sensors (#46235)
Power and Link aren't converted from strings to booleans by python-tado, so we
need to properly parse before assigning the string value to binary sensors.

Fixes: 067f2d0098 ("Add tado zone binary sensors (#44576)")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-08 22:36:53 +00:00
J. Nick Koston 384a5ae053 Ensure creating an index that already exists is forgiving for postgresql (#46185)
Unlikely sqlite and mysql, postgresql throws ProgrammingError instead
of InternalError or OperationalError when trying to create an index
that already exists.
2021-02-08 22:36:43 +00:00
Matthias Alphart 47464b89af Enable KNX auto_reconnect for auto-discovered connections (#46178) 2021-02-08 22:36:39 +00:00
Daniel Shokouhi 983e980554 Revert "Convert ozw climate values to correct units (#45369)" (#46163)
This reverts commit 1b6ee8301a.
2021-02-08 22:36:38 +00:00
Hmmbob 39a7d975f6 Fix Google translate TTS by bumping gTTS from 2.2.1 to 2.2.2 (#46110) 2021-02-08 22:36:37 +00:00
Marcel van der Veldt fd19f3ebdb Update zwave_js discovery scheme for boolean sensors in the Alarm CC (#46085) 2021-02-08 22:36:36 +00:00
Marcel van der Veldt f9f681ac36 update discovery scheme for zwave_js light platform (#46082) 2021-02-08 22:36:35 +00:00
Marcel van der Veldt d16d6f3f3f Handle missing value in all platforms of zwave_js (#46081) 2021-02-08 22:36:05 +00:00
Robert Svensson 483b1dfa61 Use async_update_entry rather than updating config_entry.data directly in Axis (#46078)
Don't step version in migrate_entry to support rollbacking
2021-02-08 22:33:48 +00:00
J. Nick Koston c57fa16a1f Fix incorrect current temperature for homekit water heaters (#46076) 2021-02-08 22:33:47 +00:00
Raman Gupta a9eb9d6136 Fix zwave_js Notification CC sensors and binary sensors (#46072)
* only include property key name in sensor name if it exists

* add endpoint to binary_sensor and sensor notification CC entities if > 0

* refactor to have helper method generate name

* change default behavior of generate_name

* return value for notification sensor when we can't find the state

* store generated name
2021-02-08 22:33:46 +00:00
Robert Svensson 96d8d432d7 Improve deCONZ logbook to be more robust in different situations (#46063) 2021-02-08 22:33:46 +00:00
Marc Mueller 1e59fa2cb2 Fix deprecated method isAlive() (#46062) 2021-02-08 22:33:45 +00:00
Steven Rollason 285fd3d43c Fix downloader path validation on subdir (#46061) 2021-02-08 22:33:44 +00:00
Sergio Conde Gómez 88485d384c Fix foscam to work again with non-admin accounts and make RTSP port configurable again (#45975)
* Do not require admin account for foscam cameras.

Foscam cameras require admin account for getting the MAC address,
requiring an admin account in the integration is not desirable as
an operator one is good enough (and a good practice).

Old entries using the MAC address as unique_id are migrated to the
new unique_id format so everything is consistent.

Also fixed unhandled invalid responses from the camera in the
config flow process.

* Make RTSP port configurable again as some cameras reports wrong port

* Remove periods from new log lines

* Set new Config Flow version to 2 and adjust the entity migration

* Create a proper error message for the InvalidResponse exception

* Change crafted unique_id to use entry_id in the entity

* Abort if same host and port is already configured

* Fix entry tracking to use entry_id instead of unique_id

* Remove unique_id from mocked config entry in tests
2021-02-08 22:33:40 +00:00
Nathan Spencer 58b9394a5f Fix zwave_js cover control for Up/Down and Open/Close (#45965)
* Fix issue with control of cover when the target value is Up/Down instead of Open/Close

* Adjust open/close/stop cover control to account for no Open/Up or Close/Down targets

* Revert back to using values of 0/99 to close/open a cover since it is supported by all covers

* Replace RELEASE_BUTTON with False and remove unused PRESS_BUTTON in zwave_js cover
2021-02-08 22:33:37 +00:00
J. Nick Koston 6467eff09c Fix incorrect current temperature for homekit water heaters (#46076) 2021-02-08 23:23:02 +01:00
J. Nick Koston dc26fd5149 Ensure creating an index that already exists is forgiving for postgresql (#46185)
Unlikely sqlite and mysql, postgresql throws ProgrammingError instead
of InternalError or OperationalError when trying to create an index
that already exists.
2021-02-08 23:22:38 +01:00
tkdrob 6b340415b2 Use core constants for greeneye_monitor (#46238) 2021-02-08 22:53:46 +01:00
tkdrob c2302784c2 Use core constants for helpers (#46240) 2021-02-08 22:53:17 +01:00
tkdrob 00bbf8c3a2 Use core constants for group component (#46239) 2021-02-08 22:52:28 +01:00
J. Nick Koston c0a1fc2916 Handle empty mylink response at startup (#46241) 2021-02-08 22:51:46 +01:00
Álvaro Fernández Rojas fcae840641 Fix Tado Power and Link binary sensors (#46235)
Power and Link aren't converted from strings to booleans by python-tado, so we
need to properly parse before assigning the string value to binary sensors.

Fixes: 067f2d0098 ("Add tado zone binary sensors (#44576)")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-02-08 22:49:46 +01:00
J. Nick Koston 71d7ae5992 Downgrade and improve lutron caseta LIP error message (#46236) 2021-02-08 22:48:02 +01:00
Marcel van der Veldt 829131fe51 Update zwave_js discovery scheme for boolean sensors in the Alarm CC (#46085) 2021-02-08 11:57:22 -05:00
Marcel van der Veldt be779d8712 update discovery scheme for zwave_js light platform (#46082) 2021-02-08 11:56:19 -05:00
Paulus Schoutsen e27619fe50 Allow discovery info accessible from CORS enabled domains (#46226) 2021-02-08 17:19:55 +01:00
Álvaro Fernández Rojas 1b194e3b2f Add noltari to Tado code owners (#46216) 2021-02-08 11:08:13 -05:00
Bram Kragten 86fe5d0561 Update frontend to 20210208.0 (#46225) 2021-02-08 16:42:33 +01:00
Allen Porter dca6a93898 Centralize keepalive logic in Stream class (#45850)
* Remove dependencies on keepalive from StremaOutput and stream_worker

Pull logic from StreamOutput and stream_worker into the Stream
class, unifying keepalive and idle timeout logic. This prepares
for future changes to preserve hls state across stream url changes.
2021-02-08 07:19:41 -08:00
Paulus Schoutsen e20a814926 Call setup during devcontainer create (#46224) 2021-02-08 16:16:40 +01:00
Shay LevyandErik Montnemery 81c88cd639 Enhance MQTT cover platform (#46059)
* Enhance MQTT cover platform

Allow combining of position and state of MQTT cover
Add template and fix optimistic in set tilt position
Add tests

* Add abbreviations

* Add tests and stopped state

* Cleanup & fix range for templates

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-02-08 16:02:12 +01:00
Greg Dowling 8f4ea3818d Add unavailable to Vera (#46064) 2021-02-08 15:25:54 +01:00
Henco Appel b1ffe429cd Fix BT Smarthub device tracker (#44813) 2021-02-08 15:24:18 +01:00
Joeri 2811e39c5c Add entity specific force_update for DSMR (#46111) 2021-02-08 15:18:36 +01:00
Franck Nijhof 48808978c4 Upgrade pre-commit to 2.10.1 (#46211) 2021-02-08 15:05:11 +01:00
Martin Hjelmare 568180632e Fix sync oath2 scaffold template (#46219) 2021-02-08 15:00:17 +01:00
6f446cf627 Add my component (#46058)
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-08 14:44:46 +01:00
Anders Melchiorsen 48002f47f4 Use caplog fixture for log capturing (#46214) 2021-02-08 14:33:57 +01:00