Skip to content

Commit 0c47059

Browse files
Fix deprecated usage of async_forward_entry_setup (#46)
* 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
1 parent fb78f1e commit 0c47059

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

custom_components/chore_helper/chore.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from .const import LOGGER
2020
from .calendar import EntitiesCalendarData
2121

22+
PLATFORMS: list[str] = [const.CALENDAR_PLATFORM]
23+
2224

2325
class Chore(RestoreEntity):
2426
"""Chore Sensor class."""
@@ -139,8 +141,8 @@ async def async_added_to_hass(self) -> None:
139141
EntitiesCalendarData(self.hass)
140142
)
141143
LOGGER.debug("Creating chore calendar")
142-
await self.hass.config_entries.async_forward_entry_setup(
143-
self.config_entry, const.CALENDAR_PLATFORM
144+
await self.hass.config_entries.async_forward_entry_setups(
145+
self.config_entry, PLATFORMS
144146
)
145147

146148
self.hass.data[const.DOMAIN][const.CALENDAR_PLATFORM].add_entity(

0 commit comments

Comments
 (0)