You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix deprecated config_entry assignment in options flow
Remove explicit self.config_entry assignment in OptionsFlow __init__
method, which is deprecated and will break in Home Assistant 2025.12.
**Issue:**
The integration explicitly assigns self.config_entry in the options flow
constructor, which is deprecated. Modern Home Assistant automatically
makes config_entry available to options flows without manual assignment.
**Fix:**
- Removed __init__ method from LockCodeManagerOptionsFlow
- Updated async_get_options_flow to return flow without passing config_entry
- Home Assistant now automatically injects config_entry into the flow
**Location:**
- custom_components/lock_code_manager/config_flow.py:315
**Benefits:**
- Eliminates deprecation warning
- Uses modern Home Assistant API
- Cleaner code with less boilerplate
Fixes TODO #3 - Breaking change deadline: HA 2025.12
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>