gody01 / ecovent_v2

Home Assistant Integration for EcoVent VENTO Expert A50/80/100 Fans
GNU General Public License v2.0
31 stars 10 forks source link

Upcoming breaking change in HA 2023.3 #9

Closed berndulum closed 1 year ago

berndulum commented 1 year ago

It looks like there is an upcoming change in Home Assistant which requires small adjustments in this integration. I am using Home Assistant 2023.2.3 and get the following message when starting it with the ecovent_v2 integration enabled:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: February 17, 2023 at 22:03:12 (1 occurrences)
Last logged: February 17, 2023 at 22:03:12

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 ecovent_v2 using this method at custom_components/ecovent_v2/__init__.py, line 49: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

Looks like in the future async_forward_entry_setups must be called instead of async_setup_platforms.

gody01 commented 1 year ago

Thank You for reporting. I will look into it.

gody01 commented 1 year ago

It should be fixed in 0.9.2

berndulum commented 1 year ago

Thanks for the quick fix. The message is gone now.