Zoneminder: Fixed undefined index error (#7340)

* Zoneminder: Fixed undefined index error

* Add Pascal's correct fix.
This commit is contained in:
Brent Hughes 2017-04-30 02:18:00 -05:00 committed by Paulus Schoutsen
parent 9f68fd9184
commit 955e3e0542

View file

@ -107,7 +107,7 @@ class ZoneMinderCamera(MjpegCamera):
self._monitor_id)
return
if status_response['success'] is False:
if not status_response.get("success", False):
_LOGGER.warning("Alarm status API call failed for monitor %i",
self._monitor_id)
return