Skip to content

Commit d3313d3

Browse files
authored
Merge pull request #165 from wjnelson78/fix/options-flow-config-entry-setter
Fix OptionsFlow config_entry setter error in Home Assistant 2024.x+
2 parents 6b95e76 + dd0f834 commit d3313d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

custom_components/openhasp/config_flow.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,12 @@ async def async_step_personalize(self, user_input=None):
220220
@callback
221221
def async_get_options_flow(config_entry):
222222
"""Set the OptionsFlowHandler."""
223-
return OpenHASPOptionsFlowHandler(config_entry)
223+
return OpenHASPOptionsFlowHandler()
224224

225225

226226
class OpenHASPOptionsFlowHandler(config_entries.OptionsFlow):
227227
"""ConfigOptions flow for openHASP."""
228228

229-
def __init__(self, config_entry):
230-
"""Initialize openHASP options flow."""
231-
self.config_entry = config_entry
232-
233229
async def async_step_init(self, user_input=None):
234230
"""Manage the options."""
235231
if user_input is not None:

0 commit comments

Comments
 (0)