Skip to content

Commit 7a7250d

Browse files
authored
fix: new error when opening option configflow
fix: new error when opening option configflow
2 parents 0e6a88c + 2d01e1b commit 7a7250d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

custom_components/ecodevices/config_flow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,14 @@ async def async_step_params(self, user_input=None) -> ConfigFlowResult:
118118
@callback
119119
def async_get_options_flow(config_entry: ConfigEntry) -> OptionsFlow:
120120
"""Define the config flow to handle options."""
121-
return EcoDevicesOptionsFlowHandler(config_entry)
121+
return EcoDevicesOptionsFlowHandler()
122122

123123

124124
class EcoDevicesOptionsFlowHandler(OptionsFlow):
125125
"""Handle a EcoDevices options flow."""
126126

127-
def __init__(self, config_entry: ConfigEntry) -> None:
127+
def __init__(self) -> None:
128128
"""Initialize."""
129-
self.config_entry: ConfigEntry = config_entry
130129
self.base_input: dict[str, Any] = {}
131130

132131
async def async_step_init(self, user_input) -> ConfigFlowResult:

0 commit comments

Comments
 (0)