Skip to content

Commit

Permalink
Fix deprecated usage of async_forward_entry_setup (#46)
Browse files Browse the repository at this point in the history
* Call async_forward_entry_setups instead of async_forward_entry_setup to fix deprecated usage

* Update python version in lint action

* Fix deprecated usage of async_forward_entry_setup
  • Loading branch information
bmcclure authored Jul 7, 2024
1 parent fb78f1e commit 0c47059
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/chore_helper/chore.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from .const import LOGGER
from .calendar import EntitiesCalendarData

PLATFORMS: list[str] = [const.CALENDAR_PLATFORM]


class Chore(RestoreEntity):
"""Chore Sensor class."""
Expand Down Expand Up @@ -139,8 +141,8 @@ async def async_added_to_hass(self) -> None:
EntitiesCalendarData(self.hass)
)
LOGGER.debug("Creating chore 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, PLATFORMS
)

self.hass.data[const.DOMAIN][const.CALENDAR_PLATFORM].add_entity(
Expand Down

0 comments on commit 0c47059

Please sign in to comment.