mirror of
https://github.com/home-assistant/core.git
synced 2025-05-12 09:59:20 +00:00
Use eager_start for homekit task creation (#111675)
This commit is contained in:
parent
3c25e2a4bd
commit
105a1ca127
homeassistant/components/homekit
@ -256,7 +256,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
DOMAIN,
|
DOMAIN,
|
||||||
context={"source": SOURCE_IMPORT},
|
context={"source": SOURCE_IMPORT},
|
||||||
data=conf,
|
data=conf,
|
||||||
)
|
),
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -610,7 +610,8 @@ class HomeAccessory(Accessory): # type: ignore[misc]
|
|||||||
self.hass.async_create_task(
|
self.hass.async_create_task(
|
||||||
self.hass.services.async_call(
|
self.hass.services.async_call(
|
||||||
domain, service, service_data, context=context
|
domain, service, service_data, context=context
|
||||||
)
|
),
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ha_callback
|
@ha_callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user