fix onvif/camera setting up error (#26825)

This commit is contained in:
Balazs Sandor 2019-09-23 19:41:35 +02:00 committed by Alexei Chetroi
parent 9c0fbfd101
commit 5e6840d8f4

View File

@ -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,