diff --git a/homeassistant/components/camera/zoneminder.py b/homeassistant/components/camera/zoneminder.py index 62d895d3922..5410833761b 100644 --- a/homeassistant/components/camera/zoneminder.py +++ b/homeassistant/components/camera/zoneminder.py @@ -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