Skip to content

Commit

Permalink
Fix: Replace deprecated async_forward_entry_setup function
Browse files Browse the repository at this point in the history
Fixes #282 (#283)
  • Loading branch information
xconverge authored Jul 7, 2024
1 parent a208354 commit 89150df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/nodered/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ async def async_device_message_received(msg, connection):

async with data[CONFIG_ENTRY_LOCK]:
if component not in data[CONFIG_ENTRY_IS_SETUP]:
await hass.config_entries.async_forward_entry_setup(
config_entry, component
await hass.config_entries.async_forward_entry_setups(
config_entry, [component]
)
data[CONFIG_ENTRY_IS_SETUP].add(component)

Expand Down

0 comments on commit 89150df

Please sign in to comment.