mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix Starlink integration startup issue (#114615)
This commit is contained in:
parent
21c7cc3250
commit
e473914407
@ -58,14 +58,14 @@ class StarlinkUpdateCoordinator(DataUpdateCoordinator[StarlinkData]):
|
|||||||
async def _async_update_data(self) -> StarlinkData:
|
async def _async_update_data(self) -> StarlinkData:
|
||||||
async with asyncio.timeout(4):
|
async with asyncio.timeout(4):
|
||||||
try:
|
try:
|
||||||
status, location, sleep = await asyncio.gather(
|
status = await self.hass.async_add_executor_job(
|
||||||
self.hass.async_add_executor_job(status_data, self.channel_context),
|
status_data, self.channel_context
|
||||||
self.hass.async_add_executor_job(
|
)
|
||||||
location_data, self.channel_context
|
location = await self.hass.async_add_executor_job(
|
||||||
),
|
location_data, self.channel_context
|
||||||
self.hass.async_add_executor_job(
|
)
|
||||||
get_sleep_config, self.channel_context
|
sleep = await self.hass.async_add_executor_job(
|
||||||
),
|
get_sleep_config, self.channel_context
|
||||||
)
|
)
|
||||||
return StarlinkData(location, sleep, *status)
|
return StarlinkData(location, sleep, *status)
|
||||||
except GrpcError as exc:
|
except GrpcError as exc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user