Zoneminder: Fixed undefined index error (#7340)
* Zoneminder: Fixed undefined index error * Add Pascal's correct fix.
This commit is contained in:
parent
9f68fd9184
commit
955e3e0542
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue