diff --git a/custom_components/garbage_collection/sensor.py b/custom_components/garbage_collection/sensor.py index f7deeba..fec28f4 100644 --- a/custom_components/garbage_collection/sensor.py +++ b/custom_components/garbage_collection/sensor.py @@ -195,8 +195,8 @@ class GarbageCollection(RestoreEntity): 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( @@ -848,4 +848,4 @@ class BlankCollection(GarbageCollection): "entity_id": self.entity_id, "collection_dates": [], } - self.hass.bus.async_fire("garbage_collection_loaded", event_data) + self.hass.bus.async_fire("garbage_collection_loaded", event_data) \ No newline at end of file