thomluther / ha-anker-solix

Home Assistant integration for Anker Solix Power devices
MIT License
283 stars 4 forks source link

Fix deprecated warning for setting option flow config_entry explicitly #164

Open thomluther opened 1 day ago

thomluther commented 1 day ago

System Health details

2024-11-18 09:38:57.269 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'anker_solix' sets option flow config_entry explicitly, which is deprecated and will stop working in 2025.12 at custom_components/anker_solix/config_flow.py, line 325: self.config_entry = config_entry, please create a bug report at https://github.com/thomluther/ha-anker-solix/issues

Integration version

2.2

Checklist

Describe the issue

Deprecated warning in HA 2024.12.0 for option flow

Reproduction steps

N/A

Debug logs

2024-11-18 09:38:57.269 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'anker_solix' sets option flow config_entry explicitly, which is deprecated and will stop working in 2025.12 at custom_components/anker_solix/config_flow.py, line 325: self.config_entry = config_entry, please create a bug report at https://github.com/thomluther/ha-anker-solix/issues

Diagnostics dump

No response

thomluther commented 1 day ago

There was a change in the option flow properties as described in the developper blog https://developers.home-assistant.io/blog/2024/11/12/options-flow This change to remove the deprecated warning probably requires HA version 2024.12.0. Once this version proved stable, the required changes can be picked up in the integration in 1Q2025 and make 2024.12.0 as new minimum version.