Bump reolink_aio to 0.7.6 + Timeout (#97464)
This commit is contained in:
parent
094f2cbad7
commit
121fc7778d
5 changed files with 12 additions and 11 deletions
|
@ -24,7 +24,7 @@ from homeassistant.helpers.network import NoURLAvailableError, get_url
|
|||
from .const import CONF_PROTOCOL, CONF_USE_HTTPS, DOMAIN
|
||||
from .exceptions import ReolinkSetupException, ReolinkWebhookException, UserNotAdmin
|
||||
|
||||
DEFAULT_TIMEOUT = 60
|
||||
DEFAULT_TIMEOUT = 30
|
||||
FIRST_ONVIF_TIMEOUT = 10
|
||||
FIRST_ONVIF_LONG_POLL_TIMEOUT = 90
|
||||
SUBSCRIPTION_RENEW_THRESHOLD = 300
|
||||
|
@ -470,7 +470,9 @@ class ReolinkHost:
|
|||
await asyncio.sleep(LONG_POLL_ERROR_COOLDOWN)
|
||||
continue
|
||||
except Exception as ex:
|
||||
_LOGGER.exception("Error while requesting ONVIF pull point: %s", ex)
|
||||
_LOGGER.exception(
|
||||
"Unexpected exception while requesting ONVIF pull point: %s", ex
|
||||
)
|
||||
await self._api.unsubscribe(sub_type=SubType.long_poll)
|
||||
raise ex
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue