Skip to content

Commit

Permalink
Merge pull request #647 from stickpin/fix-ha202407-warning
Browse files Browse the repository at this point in the history
Fix warning introduced in HA 2024.7
  • Loading branch information
humbertogontijo authored Jul 8, 2024
2 parents 13a48f6 + 151138a commit 88775c9
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 88775c9

Please sign in to comment.