mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix Non-thread-safe operation in zwave node_added (#62287)
This commit is contained in:
@@ -493,7 +493,7 @@ async def async_setup_entry( # noqa: C901
|
|||||||
await platform.async_add_entities([entity])
|
await platform.async_add_entities([entity])
|
||||||
|
|
||||||
if entity.unique_id:
|
if entity.unique_id:
|
||||||
hass.async_add_job(_add_node_to_component())
|
hass.create_task(_add_node_to_component())
|
||||||
return
|
return
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
Reference in New Issue
Block a user