Use eager_start for homekit task creation (#111675)

pull/111666/head
J. Nick Koston 2024-02-27 12:44:01 -10:00 committed by GitHub
parent 3c25e2a4bd
commit 105a1ca127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -256,7 +256,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
DOMAIN,
context={"source": SOURCE_IMPORT},
data=conf,
)
),
eager_start=True,
)
return True

View File

@ -610,7 +610,8 @@ class HomeAccessory(Accessory): # type: ignore[misc]
self.hass.async_create_task(
self.hass.services.async_call(
domain, service, service_data, context=context
)
),
eager_start=True,
)
@ha_callback