Skip to content

AttributeError on OptionsFlowHandler after recent Home Assistant update (2025.12.0) #437

@arnaudgaudin

Description

@arnaudgaudin

What version of Adaptive Cover are you using?

1.4.5

What version of Home Assistant are you using?

2025.12.0

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

AttributeError on OptionsFlowHandler after recent Home Assistant update

Description

Hello,

Since a recent Home Assistant update, the adaptive_cover plugin generates an error in the logs when accessing options or creating the configuration flow. The plugin worked perfectly before this update, and I have not modified any plugin files.

Relevant Logs

Error handling request from *.*.*.* Traceback (most recent call last): ... File "/config/custom_components/adaptive_cover/config_flow.py", line 640, in init self.config_entry = config_entry AttributeError: property 'config_entry' of 'OptionsFlowHandler' object has no setter

Analysis

  • The error originates from OptionsFlowHandler.__init__.
  • The code attempts to assign config_entry while the property is defined as @property without a setter.
  • The issue is triggered by Home Assistant calling async_get_options_flow, suggesting a compatibility problem with the current HA version.
  • The plugin itself has not been modified, indicating the root cause is likely a recent Home Assistant update that changed how async_get_options_flow works.

Impact

  • Unable to modify the component options in Home Assistant.
  • The error appears frequently in logs but does not necessarily break the main functionality of the covers.

Environment

  • Home Assistant version: [2025.12]
  • Python version: 3.13
  • adaptive_cover version: [1.4.5]
  • Installation: Custom Component (HACS or manual)

Steps to Reproduce

  1. Install adaptive_cover on a recent Home Assistant version.
  2. Go to Settings → Devices & Services → Integrations → Adaptive Cover → Options.
  3. Observe the error in the logs and inability to modify options.

Expected Behavior

  • The options flow should open without errors, allowing configuration of the component.

Suggested Fix

In config_flow.py, store config_entry in an internal attribute instead of assigning directly to the property:

class OptionsFlowHandler:
    def __init__(self, config_entry):
        self._config_entry = config_entry  # use an internal attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions