Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

Commit 60f7ce1

Browse files
Ubuntuclaude
authored andcommitted
fix(config_flow): remove manual config_entry init from OptionsFlow
HA 2024+ auto-provides self.config_entry on OptionsFlow. Manual __init__ with config_entry arg caused 500 Internal Server Error. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d009e1c commit 60f7ce1

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

custom_components/luxtronik2_modbus_proxy/config_flow.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def async_get_options_flow(
122122
Returns:
123123
A LuxtronikOptionsFlow instance bound to the config entry.
124124
"""
125-
return LuxtronikOptionsFlow(config_entry)
125+
return LuxtronikOptionsFlow()
126126

127127
@staticmethod
128128
def _test_connection(host: str, port: int) -> None:
@@ -169,15 +169,6 @@ class LuxtronikOptionsFlow(config_entries.OptionsFlow):
169169
entry reload so the coordinator reconnects with the new settings.
170170
"""
171171

172-
def __init__(self, config_entry: config_entries.ConfigEntry) -> None:
173-
"""Initialize the options flow with the existing config entry.
174-
175-
Args:
176-
config_entry: The config entry being reconfigured. Used to pre-fill
177-
the form with the current host and poll_interval values.
178-
"""
179-
self.config_entry = config_entry
180-
181172
async def async_step_init(
182173
self, user_input: dict[str, Any] | None = None
183174
) -> config_entries.FlowResult:

0 commit comments

Comments
 (0)