Skip to content

Deprecated usage of config_entry in option flow (will break in Home Assistant 2025.12) #392

@Thunder19751975

Description

@Thunder19751975

Description

Home Assistant reports a deprecation warning related to the Victron custom integration.
The integration explicitly sets config_entry inside the options flow, which is no longer allowed and will stop working in Home Assistant 2025.12.

Error message

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:350
First occurred: XX:XX:XX (1 occurrences)
Last logged: XX:XX:XX

Detected that custom integration 'victron' sets option flow config_entry explicitly,
which is deprecated at custom_components/victron/config_flow.py, line 302:
self.config_entry = config_entry.
This will stop working in Home Assistant 2025.12,
please create a bug report at https://github.com/sfstar/hass-victron/issues

Affected file

custom_components/victron/config_flow.py
Line 302:

self.config_entry = config_entry

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixInconsistencies or issues which will cause a problem for users or implementors.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions