Increase life360 timeout (#80692)

This commit is contained in:
Phil Bruckner 2022-10-21 09:41:34 -05:00 committed by GitHub
parent 3b78df07de
commit f311c03741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ DOMAIN = "life360"
LOGGER = logging.getLogger(__package__) LOGGER = logging.getLogger(__package__)
ATTRIBUTION = "Data provided by life360.com" ATTRIBUTION = "Data provided by life360.com"
COMM_TIMEOUT = 3.05 COMM_TIMEOUT = 10
SPEED_FACTOR_MPH = 2.25 SPEED_FACTOR_MPH = 2.25
SPEED_DIGITS = 1 SPEED_DIGITS = 1
UPDATE_INTERVAL = timedelta(seconds=10) UPDATE_INTERVAL = timedelta(seconds=10)

View File

@ -116,10 +116,10 @@ class Life360DataUpdateCoordinator(DataUpdateCoordinator[Life360Data]):
return await getattr(self._api, func)(*args) return await getattr(self._api, func)(*args)
except LoginError as exc: except LoginError as exc:
LOGGER.debug("Login error: %s", exc) LOGGER.debug("Login error: %s", exc)
raise ConfigEntryAuthFailed from exc raise ConfigEntryAuthFailed(exc) from exc
except Life360Error as exc: except Life360Error as exc:
LOGGER.debug("%s: %s", exc.__class__.__name__, exc) LOGGER.debug("%s: %s", exc.__class__.__name__, exc)
raise UpdateFailed from exc raise UpdateFailed(exc) from exc
async def _async_update_data(self) -> Life360Data: async def _async_update_data(self) -> Life360Data:
"""Get & process data from Life360.""" """Get & process data from Life360."""