Skip to content

Commit

Permalink
Fix warning introduced in HA 2024.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stickpin authored Jul 4, 2024
1 parent 13a48f6 commit 151138a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/roborock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
# Don't start if no coordinators succeeded.
raise ConfigEntryNotReady("There are no devices that can currently be reached.")

for platform in platforms:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
await hass.config_entries.async_forward_entry_setups(entry, platforms)

entry.async_on_unload(entry.add_update_listener(async_reload_entry))
return True
Expand Down

0 comments on commit 151138a

Please sign in to comment.