mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Fix setup of ONVIF devices without snapshot capability (#39723)
* Fix setup of ONVIF devices without snapshot capability * Unrelated debug message typo fix
This commit is contained in:
parent
dd00cfc7a2
commit
f828cdcaef
@ -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():
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user