mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +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
|
return HTTP_DIGEST_AUTHENTICATION
|
||||||
|
|
||||||
snapshot_uri = await device.async_get_snapshot_uri(device.profiles[0])
|
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)
|
auth = HTTPDigestAuth(device.username, device.password)
|
||||||
|
|
||||||
def _get():
|
def _get():
|
||||||
|
@ -217,7 +217,7 @@ class ONVIFDevice:
|
|||||||
raise fault
|
raise fault
|
||||||
|
|
||||||
LOGGER.debug(
|
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,
|
self.name,
|
||||||
fault,
|
fault,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user