mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
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
@ -107,7 +107,7 @@ class ZoneMinderCamera(MjpegCamera):
|
|||||||
self._monitor_id)
|
self._monitor_id)
|
||||||
return
|
return
|
||||||
|
|
||||||
if status_response['success'] is False:
|
if not status_response.get("success", False):
|
||||||
_LOGGER.warning("Alarm status API call failed for monitor %i",
|
_LOGGER.warning("Alarm status API call failed for monitor %i",
|
||||||
self._monitor_id)
|
self._monitor_id)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user