Skip to content

Commit

Permalink
Merge pull request #69 from PimDoos/dev
Browse files Browse the repository at this point in the history
Replace deprecated setup code
  • Loading branch information
PimDoos authored Jul 6, 2024
2 parents 25ab83b + 0febab2 commit d8bb4bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions custom_components/onesmartcontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
elif wrapper_status != OneSmartSetupStatus.SUCCESS:
raise ConfigEntryNotReady

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)

return True


Expand Down
2 changes: 1 addition & 1 deletion custom_components/onesmartcontrol/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/PimDoos/onesmartcontrolha/issues",
"requirements": [],
"version": "0.4.4"
"version": "0.4.5"
}

0 comments on commit d8bb4bc

Please sign in to comment.