mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Avoid fetching both unifiprotect RTSP urls (#94978)
This commit is contained in:
parent
f9366e5cc7
commit
e24c2ae55c
@ -167,9 +167,8 @@ class ProtectCamera(ProtectDeviceEntity, Camera):
|
||||
if not self.channel.is_rtsp_enabled:
|
||||
disable_stream = False
|
||||
|
||||
rtsp_url = self.channel.rtsp_url
|
||||
if self._secure:
|
||||
rtsp_url = self.channel.rtsps_url
|
||||
channel = self.channel
|
||||
rtsp_url = channel.rtsps_url if self._secure else channel.rtsp_url
|
||||
|
||||
# _async_set_stream_source called by __init__
|
||||
self._stream_source = ( # pylint: disable=attribute-defined-outside-init
|
||||
|
Loading…
x
Reference in New Issue
Block a user