Skip to content

Commit

Permalink
Fix Starlink integration startup issue (#114615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexiven committed Apr 2, 2024
1 parent 21c7cc3 commit e473914
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions homeassistant/components/starlink/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ def __init__(self, hass: HomeAssistant, name: str, url: str) -> None:
async def _async_update_data(self) -> StarlinkData:
async with asyncio.timeout(4):
try:
status, location, sleep = await asyncio.gather(
self.hass.async_add_executor_job(status_data, self.channel_context),
self.hass.async_add_executor_job(
location_data, self.channel_context
),
self.hass.async_add_executor_job(
get_sleep_config, self.channel_context
),
status = await self.hass.async_add_executor_job(
status_data, self.channel_context
)
location = await self.hass.async_add_executor_job(
location_data, self.channel_context
)
sleep = await self.hass.async_add_executor_job(
get_sleep_config, self.channel_context
)
return StarlinkData(location, sleep, *status)
except GrpcError as exc:
Expand Down

0 comments on commit e473914

Please sign in to comment.