Actualiser custom_components/garbage_collection/sensor.py

This commit is contained in:
2026-06-17 14:14:34 +00:00
parent b5775a265d
commit bf22894f45
@@ -195,8 +195,8 @@ class GarbageCollection(RestoreEntity):
const.CALENDAR_PLATFORM const.CALENDAR_PLATFORM
] = EntitiesCalendarData(self.hass) ] = EntitiesCalendarData(self.hass)
_LOGGER.debug("Creating garbage_collection calendar") _LOGGER.debug("Creating garbage_collection calendar")
await self.hass.config_entries.async_forward_entry_setup( await self.hass.config_entries.async_forward_entry_setups(
self.config_entry, const.CALENDAR_PLATFORM self.config_entry, [const.CALENDAR_PLATFORM]
) )
self.hass.data[const.DOMAIN][const.CALENDAR_PLATFORM].add_entity( self.hass.data[const.DOMAIN][const.CALENDAR_PLATFORM].add_entity(
@@ -848,4 +848,4 @@ class BlankCollection(GarbageCollection):
"entity_id": self.entity_id, "entity_id": self.entity_id,
"collection_dates": [], "collection_dates": [],
} }
self.hass.bus.async_fire("garbage_collection_loaded", event_data) self.hass.bus.async_fire("garbage_collection_loaded", event_data)