mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
fix onvif/camera setting up error (#26825)
This commit is contained in:
parent
9c0fbfd101
commit
5e6840d8f4
@ -156,7 +156,7 @@ class ONVIFHassCamera(Camera):
|
|||||||
Initializes the camera by obtaining the input uri and connecting to
|
Initializes the camera by obtaining the input uri and connecting to
|
||||||
the camera. Also retrieves the ONVIF profiles.
|
the camera. Also retrieves the ONVIF profiles.
|
||||||
"""
|
"""
|
||||||
from aiohttp.client_exceptions import ClientConnectorError
|
from aiohttp.client_exceptions import ClientConnectionError
|
||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
from zeep.exceptions import Fault
|
from zeep.exceptions import Fault
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ class ONVIFHassCamera(Camera):
|
|||||||
await self.async_check_date_and_time()
|
await self.async_check_date_and_time()
|
||||||
await self.async_obtain_input_uri()
|
await self.async_obtain_input_uri()
|
||||||
self.setup_ptz()
|
self.setup_ptz()
|
||||||
except ClientConnectorError as err:
|
except ClientConnectionError as err:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Couldn't connect to camera '%s', but will " "retry later. Error: %s",
|
"Couldn't connect to camera '%s', but will " "retry later. Error: %s",
|
||||||
self._name,
|
self._name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user