diff --git a/homeassistant/components/onvif/__init__.py b/homeassistant/components/onvif/__init__.py index 93e948b770b..964c7a70a6d 100644 --- a/homeassistant/components/onvif/__init__.py +++ b/homeassistant/components/onvif/__init__.py @@ -127,6 +127,8 @@ async def _get_snapshot_auth(hass, device, entry): return HTTP_DIGEST_AUTHENTICATION snapshot_uri = await device.async_get_snapshot_uri(device.profiles[0]) + if not snapshot_uri: + return HTTP_DIGEST_AUTHENTICATION auth = HTTPDigestAuth(device.username, device.password) def _get(): diff --git a/homeassistant/components/onvif/device.py b/homeassistant/components/onvif/device.py index 1a879e54767..1dfa670114f 100644 --- a/homeassistant/components/onvif/device.py +++ b/homeassistant/components/onvif/device.py @@ -217,7 +217,7 @@ class ONVIFDevice: raise fault LOGGER.debug( - "Couldn't get network interfaces from ONVIF deivice '%s'. Error: %s", + "Couldn't get network interfaces from ONVIF device '%s'. Error: %s", self.name, fault, )