Skip to content

Commit eb88dee

Browse files
authored
Merge pull request #1385 from custom-components/async_fix
fix deprecated async_forward_entry_setup
2 parents f49d161 + c65de0c commit eb88dee

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

custom_components/ble_monitor/__init__.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
350350
hass.data[DOMAIN]["blemonitor"] = blemonitor
351351
hass.data[DOMAIN]["config_entry_id"] = config_entry.entry_id
352352

353-
for component in PLATFORMS:
354-
hass.async_create_task(
355-
hass.config_entries.async_forward_entry_setup(config_entry, component)
356-
)
353+
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
357354

358355
return True
359356

custom_components/ble_monitor/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"btsocket>=0.2.0",
1515
"pyric>=0.1.6.3"
1616
],
17-
"version": "12.14.0"
17+
"version": "12.15.0"
1818
}

0 commit comments

Comments
 (0)