diff --git a/custom_components/easy_computer_manage/__init__.py b/custom_components/easy_computer_manage/__init__.py index a4f9a51..2d1265b 100644 --- a/custom_components/easy_computer_manage/__init__.py +++ b/custom_components/easy_computer_manage/__init__.py @@ -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