Skip to content

Commit

Permalink
Migrate async_forward_entry_setup to async_forward_entry_setups (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay900 authored Jan 1, 2025
1 parent c40f5a7 commit cc19bbb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/tplink_deco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
hass.data[DOMAIN][config_entry.entry_id] = data
deco_coordinator = data[COORDINATOR_DECOS_KEY]

for platform in PLATFORMS:
config_entry.async_create_task(
hass, hass.config_entries.async_forward_entry_setup(config_entry, platform)
)
hass.async_create_task(
hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
)

async def async_reboot_deco(service: ServiceCall) -> None:
dr = device_registry.async_get(hass=hass)
Expand Down

0 comments on commit cc19bbb

Please sign in to comment.