mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Reolink remove unneeded str() (#100718)
This commit is contained in:
parent
4c65c92fb0
commit
8474c25cf1
@ -122,7 +122,7 @@ class ReolinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
"Reolink DHCP reported new IP '%s', "
|
"Reolink DHCP reported new IP '%s', "
|
||||||
"but got error '%s' trying to connect, so sticking to IP '%s'",
|
"but got error '%s' trying to connect, so sticking to IP '%s'",
|
||||||
discovery_info.ip,
|
discovery_info.ip,
|
||||||
str(err),
|
err,
|
||||||
existing_entry.data[CONF_HOST],
|
existing_entry.data[CONF_HOST],
|
||||||
)
|
)
|
||||||
raise AbortFlow("already_configured") from err
|
raise AbortFlow("already_configured") from err
|
||||||
|
@ -322,7 +322,7 @@ class ReolinkHost:
|
|||||||
"Reolink error while unsubscribing from host %s:%s: %s",
|
"Reolink error while unsubscribing from host %s:%s: %s",
|
||||||
self._api.host,
|
self._api.host,
|
||||||
self._api.port,
|
self._api.port,
|
||||||
str(err),
|
err,
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -332,7 +332,7 @@ class ReolinkHost:
|
|||||||
"Reolink error while logging out for host %s:%s: %s",
|
"Reolink error while logging out for host %s:%s: %s",
|
||||||
self._api.host,
|
self._api.host,
|
||||||
self._api.port,
|
self._api.port,
|
||||||
str(err),
|
err,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _async_start_long_polling(self, initial=False):
|
async def _async_start_long_polling(self, initial=False):
|
||||||
@ -349,7 +349,7 @@ class ReolinkHost:
|
|||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Reolink %s event long polling subscription lost: %s",
|
"Reolink %s event long polling subscription lost: %s",
|
||||||
self._api.nvr_name,
|
self._api.nvr_name,
|
||||||
str(err),
|
err,
|
||||||
)
|
)
|
||||||
except ReolinkError as err:
|
except ReolinkError as err:
|
||||||
# make sure the long_poll_task is always created to try again later
|
# make sure the long_poll_task is always created to try again later
|
||||||
@ -358,7 +358,7 @@ class ReolinkHost:
|
|||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Reolink %s event long polling subscription lost: %s",
|
"Reolink %s event long polling subscription lost: %s",
|
||||||
self._api.nvr_name,
|
self._api.nvr_name,
|
||||||
str(err),
|
err,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self._lost_subscription = False
|
self._lost_subscription = False
|
||||||
@ -428,7 +428,7 @@ class ReolinkHost:
|
|||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Reolink %s event subscription lost: %s",
|
"Reolink %s event subscription lost: %s",
|
||||||
self._api.nvr_name,
|
self._api.nvr_name,
|
||||||
str(err),
|
err,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self._lost_subscription = False
|
self._lost_subscription = False
|
||||||
@ -568,7 +568,7 @@ class ReolinkHost:
|
|||||||
"Reolink error while polling motion state for host %s:%s: %s",
|
"Reolink error while polling motion state for host %s:%s: %s",
|
||||||
self._api.host,
|
self._api.host,
|
||||||
self._api.port,
|
self._api.port,
|
||||||
str(err),
|
err,
|
||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
# schedule next poll
|
# schedule next poll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user