Skip to content

Commit

Permalink
Replaces deprecated async_setup_platforms with async_forward_entry_se…
Browse files Browse the repository at this point in the history
…tups

Fixes #169
  • Loading branch information
sebr committed Feb 9, 2023
1 parent 6bb3800 commit df09bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bhyve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def async_update_callback(data):
"programs": programs,
}

hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(update_listener))

hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, client.stop())
Expand Down

0 comments on commit df09bb6

Please sign in to comment.