Skip to content

Commit

Permalink
async_forward_entry_setup is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Aug 18, 2024
1 parent 9652093 commit cf47471
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/ramses_cc/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ async def _async_setup_platform(self, platform: str) -> None:
"""Set up a platform."""
if platform not in self._platform_setup_tasks:
self._platform_setup_tasks[platform] = self.hass.async_create_task(
self.hass.config_entries.async_forward_entry_setup(self.entry, platform)
self.hass.config_entries.async_forward_entry_setups(
self.entry, [platform]
)
)
await self._platform_setup_tasks[platform]

Expand Down

0 comments on commit cf47471

Please sign in to comment.