mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
camera.zoneminder: Handle old versions of zoneminder (#7589)
This commit is contained in:
parent
352cca1037
commit
e1a4d51fa2
@ -107,12 +107,7 @@ class ZoneMinderCamera(MjpegCamera):
|
|||||||
self._monitor_id)
|
self._monitor_id)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not status_response.get("success", False):
|
self._is_recording = status_response.get('status') == ZM_STATE_ALARM
|
||||||
_LOGGER.warning("Alarm status API call failed for monitor %i",
|
|
||||||
self._monitor_id)
|
|
||||||
return
|
|
||||||
|
|
||||||
self._is_recording = status_response['status'] == ZM_STATE_ALARM
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_recording(self):
|
def is_recording(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user