diff --git a/custom_components/garbage_collection/__init__.py b/custom_components/garbage_collection/__init__.py index 32423fc..10058a3 100644 --- a/custom_components/garbage_collection/__init__.py +++ b/custom_components/garbage_collection/__init__.py @@ -227,8 +227,8 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b config_entry.add_update_listener(update_listener) # Add sensor hass.async_create_task( - hass.config_entries.async_forward_entry_setup( - config_entry, const.SENSOR_PLATFORM + hass.config_entries.async_forward_entry_setups( + config_entry, [const.SENSOR_PLATFORM] ) ) return True diff --git a/custom_components/garbage_collection/sensor.py b/custom_components/garbage_collection/sensor.py index 8bba63a..c070855 100644 --- a/custom_components/garbage_collection/sensor.py +++ b/custom_components/garbage_collection/sensor.py @@ -173,8 +173,8 @@ async def async_added_to_hass(self) -> None: const.CALENDAR_PLATFORM ] = EntitiesCalendarData(self.hass) _LOGGER.debug("Creating garbage_collection calendar") - await self.hass.config_entries.async_forward_entry_setup( - self.config_entry, const.CALENDAR_PLATFORM + await self.hass.config_entries.async_forward_entry_setups( + self.config_entry, [const.CALENDAR_PLATFORM] ) self.hass.data[const.DOMAIN][const.CALENDAR_PLATFORM].add_entity(