Skip to content

Commit

Permalink
Merge pull request #158 from dlarrick/dcl_152
Browse files Browse the repository at this point in the history
Fix deprecation warnings around async_forward_entry_setup
  • Loading branch information
dlarrick authored Jul 20, 2024
2 parents 8ac5c94 + d681a5a commit 5d1a74c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions custom_components/kumo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
if device.get_serial() not in coordinators:
coordinators[device.get_serial()] = KumoDataUpdateCoordinator(hass, device)

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

_LOGGER.warning("Could not load config from KumoCloud server or cache")
Expand Down
4 changes: 2 additions & 2 deletions custom_components/kumo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"dependencies": [],
"codeowners": [ "@dlarrick" ],
"requirements": ["pykumo==0.3.9"],
"version": "0.3.12",
"homeassistant": "2021.12.0",
"version": "0.3.13",
"homeassistant": "2024.1.0",
"iot_class": "local_polling",
"integration_type": "hub"
}

0 comments on commit 5d1a74c

Please sign in to comment.