mirror of https://github.com/home-assistant/core
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)
|
||||
return
|
||||
|
||||
if not status_response.get("success", False):
|
||||
_LOGGER.warning("Alarm status API call failed for monitor %i",
|
||||
self._monitor_id)
|
||||
return
|
||||
|
||||
self._is_recording = status_response['status'] == ZM_STATE_ALARM
|
||||
self._is_recording = status_response.get('status') == ZM_STATE_ALARM
|
||||
|
||||
@property
|
||||
def is_recording(self):
|
||||
|
|
Loading…
Reference in New Issue