mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix blocking call in yale_smart_alarm (#125255)
This commit is contained in:
parent
b23297bb7e
commit
b61678d39c
@ -36,8 +36,10 @@ class YaleDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
|
|||||||
async def _async_setup(self) -> None:
|
async def _async_setup(self) -> None:
|
||||||
"""Set up connection to Yale."""
|
"""Set up connection to Yale."""
|
||||||
try:
|
try:
|
||||||
self.yale = YaleSmartAlarmClient(
|
self.yale = await self.hass.async_add_executor_job(
|
||||||
self.entry.data[CONF_USERNAME], self.entry.data[CONF_PASSWORD]
|
YaleSmartAlarmClient,
|
||||||
|
self.entry.data[CONF_USERNAME],
|
||||||
|
self.entry.data[CONF_PASSWORD],
|
||||||
)
|
)
|
||||||
except AuthenticationError as error:
|
except AuthenticationError as error:
|
||||||
raise ConfigEntryAuthFailed from error
|
raise ConfigEntryAuthFailed from error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user