Fix Non-thread-safe operation in zwave node_added (#62287)

pull/62291/head
J. Nick Koston 2021-12-18 16:17:54 -06:00 committed by GitHub
parent 99d1e015ad
commit b05149fc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ async def async_setup_entry( # noqa: C901
await platform.async_add_entities([entity])
if entity.unique_id:
hass.async_add_job(_add_node_to_component())
hass.create_task(_add_node_to_component())
return
@callback