Skip to content

Commit

Permalink
Fix deprecation warnings around async_forward_entry_setup
Browse files Browse the repository at this point in the history
Bump supported Home Assistant version
  • Loading branch information
dlarrick committed Jul 20, 2024
1 parent 8ac5c94 commit d681a5a
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 d681a5a

Please sign in to comment.