Skip to content

Commit 89150df

Browse files
authored
Fix: Replace deprecated async_forward_entry_setup function
Fixes #282 (#283)
1 parent a208354 commit 89150df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/nodered/discovery.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ async def async_device_message_received(msg, connection):
9292

9393
async with data[CONFIG_ENTRY_LOCK]:
9494
if component not in data[CONFIG_ENTRY_IS_SETUP]:
95-
await hass.config_entries.async_forward_entry_setup(
96-
config_entry, component
95+
await hass.config_entries.async_forward_entry_setups(
96+
config_entry, [component]
9797
)
9898
data[CONFIG_ENTRY_IS_SETUP].add(component)
9999

0 commit comments

Comments
 (0)