camera.zoneminder: Handle old versions of zoneminder (#7589)

This commit is contained in:
Matt N 2017-05-13 23:09:44 -07:00 committed by Paulus Schoutsen
parent 352cca1037
commit e1a4d51fa2
1 changed files with 1 additions and 6 deletions

View File

@ -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):