mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +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
|
||||
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 zeep.exceptions import Fault
|
||||
|
||||
@ -167,7 +167,7 @@ class ONVIFHassCamera(Camera):
|
||||
await self.async_check_date_and_time()
|
||||
await self.async_obtain_input_uri()
|
||||
self.setup_ptz()
|
||||
except ClientConnectorError as err:
|
||||
except ClientConnectionError as err:
|
||||
_LOGGER.warning(
|
||||
"Couldn't connect to camera '%s', but will " "retry later. Error: %s",
|
||||
self._name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user