Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings around async_forward_entry_setup #158

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not actually sure what version we're compatible with, but I don't test with anything but the latest so I just picked something recent.

"iot_class": "local_polling",
"integration_type": "hub"
}