mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 22:55:10 +02:00
camera.zoneminder: Handle old versions of zoneminder (#7589)
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user