Skip to content

Commit

Permalink
fix deprecated async_forward_entry_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 committed Aug 25, 2024
1 parent f49d161 commit c65de0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions custom_components/ble_monitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
hass.data[DOMAIN]["blemonitor"] = blemonitor
hass.data[DOMAIN]["config_entry_id"] = config_entry.entry_id

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

return True

Expand Down
2 changes: 1 addition & 1 deletion custom_components/ble_monitor/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"btsocket>=0.2.0",
"pyric>=0.1.6.3"
],
"version": "12.14.0"
"version": "12.15.0"
}

0 comments on commit c65de0c

Please sign in to comment.