Skip to content

Commit

Permalink
remove deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
gvigroux committed Sep 6, 2024
1 parent a56601b commit af4a745
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions custom_components/hon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
await coordinator.device.load_commands()
await coordinator.device.load_statistics()

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
#for platform in PLATFORMS:
# hass.async_create_task(
# hass.config_entries.async_forward_entry_setup(entry, platform)
# )



Expand Down
2 changes: 1 addition & 1 deletion custom_components/hon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://github.com/gvigroux/hon",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/gvigroux/hon/issues",
"version": "0.7.4"
"version": "0.7.5"
}

0 comments on commit af4a745

Please sign in to comment.