Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom_components/garbage_collection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions custom_components/garbage_collection/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down