replace async_setup_platforms with async_forward_entry_setup

This commit is contained in:
mathieu 2023-04-04 14:13:47 +02:00
parent 969689c6b3
commit 44e5335531

View File

@ -61,6 +61,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
schema=WAKE_ON_LAN_SEND_MAGIC_PACKET_SCHEMA,
)
hass.config_entries.async_setup_platforms(entry, ["switch"])
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(
entry, "switch"
)
)
return True