Allow update of camera modules after setting values (#1450)

This commit is contained in:
Steven B.
2025-01-14 15:11:12 +00:00
committed by GitHub
parent d03f535568
commit 68f50aa763
9 changed files with 24 additions and 0 deletions

View File

@@ -99,6 +99,9 @@ class Camera(SmartCamModule):
:return: rtsp url with escaped credentials or None if no credentials or
camera is off.
"""
if self._device._is_hub_child:
return None
streams = {
StreamResolution.HD: "stream1",
StreamResolution.SD: "stream2",
@@ -119,6 +122,9 @@ class Camera(SmartCamModule):
def onvif_url(self) -> str | None:
"""Return the onvif url."""
if self._device._is_hub_child:
return None
return f"http://{self._device.host}:{ONVIF_PORT}/onvif/device_service"
async def _check_supported(self) -> bool: