Skip to content

Commit

Permalink
Merge pull request #1385 from custom-components/async_fix
Browse files Browse the repository at this point in the history
fix deprecated async_forward_entry_setup
  • Loading branch information
Ernst79 authored Aug 25, 2024
2 parents f49d161 + c65de0c commit eb88dee
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 eb88dee

Please sign in to comment.