replace async_setup_platforms with async_forward_entry_setup
This commit is contained in:
parent
969689c6b3
commit
44e5335531
@ -61,6 +61,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
schema=WAKE_ON_LAN_SEND_MAGIC_PACKET_SCHEMA,
|
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
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user