mampfes / hacs_dwd_pollenflug

Adds pollen forecasts from DWD to Home Assistant.
MIT License
69 stars 5 forks source link

Use async_forward_entry_setups instead of async_setup_platforms #11

Closed S-Przybylski closed 1 year ago

S-Przybylski commented 1 year ago

After installing HomeAssistant 2023.02.0beta a new warning appeared:

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for dwd_pollenflug using this method at custom_components/dwd_pollenflug/__init__.py, line 36: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

This could be resolved similar to HACS change: https://github.com/hacs/integration/commit/96a1a9e6ed57f8cc24c3579ac9ddc8447e23977c