mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix dangling task for elkm1 (#88286)
* Fix dangling task for elkm1 * Update homeassistant/components/elkm1/__init__.py Co-authored-by: J. Nick Koston <nick@koston.org> --------- Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
3212a43e6b
commit
509d968814
@ -187,7 +187,7 @@ async def async_setup(hass: HomeAssistant, hass_config: ConfigType) -> bool:
|
||||
hass, await async_discover_devices(hass, DISCOVER_SCAN_TIMEOUT)
|
||||
)
|
||||
|
||||
asyncio.create_task(_async_discovery())
|
||||
hass.async_create_background_task(_async_discovery(), "elkm1 setup discovery")
|
||||
async_track_time_interval(hass, _async_discovery, DISCOVERY_INTERVAL)
|
||||
|
||||
if DOMAIN not in hass_config:
|
||||
|
Loading…
x
Reference in New Issue
Block a user