Skip to content

Commit

Permalink
Enable switch platform
Browse files Browse the repository at this point in the history
  • Loading branch information
PimDoos committed May 3, 2024
1 parent f43ced3 commit 5ece114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/sessy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

_LOGGER = logging.getLogger(__name__)

PLATFORMS: list[Platform] = [Platform.BUTTON, Platform.SENSOR, Platform.SELECT, Platform.NUMBER, Platform.TIME, Platform.UPDATE]
PLATFORMS: list[Platform] = [Platform.BUTTON, Platform.SENSOR, Platform.SELECT, Platform.NUMBER, Platform.SWITCH, Platform.TIME, Platform.UPDATE]


async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool:
Expand Down Expand Up @@ -73,7 +73,7 @@ async def update_cache_commands(hass, config_entry):
hass.data[DOMAIN][config_entry.entry_id][SESSY_DEVICE_INFO] = await generate_device_info(hass, config_entry, device)

for platform in PLATFORMS:
hass.async_create_task(
config_entry.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, platform)
)

Expand Down

0 comments on commit 5ece114

Please sign in to comment.