diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-18 02:19:27 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-18 02:19:27 +0300 |
commit | f14bdc6752fc4a0ab36567d0f1e51e472a2200b6 (patch) | |
tree | 22c6b3af78fc079ab6424751289971aa65051f97 /include/py/homekit/camera | |
parent | 42155370475b1f6619498ec2c43c1c7f328ce1a1 (diff) |
web_kbn: basic support of cams hls streaming
Diffstat (limited to 'include/py/homekit/camera')
-rw-r--r-- | include/py/homekit/camera/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/py/homekit/camera/config.py b/include/py/homekit/camera/config.py index bcd5d07..257e5f1 100644 --- a/include/py/homekit/camera/config.py +++ b/include/py/homekit/camera/config.py @@ -138,6 +138,9 @@ class IpcamConfig(ConfigUnit): def has_camera(self, camera: int) -> bool: return camera in tuple(self['cameras'].keys()) + def has_zone(self, zone: str) -> bool: + return zone in tuple(self['zones'].keys()) + def get_camera_container(self, camera: int) -> VideoContainerType: return self.get_camera_type(camera).get_container() |