Skip to content

Commit dce6bc0

Browse files
Merge pull request #196 from vincentwolsink/config_entries
Remove setting config_entry explicitly
2 parents 5efafc7 + a84c11d commit dce6bc0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

custom_components/enphase_envoy/config_flow.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,13 @@ async def async_step_user(
220220

221221
@staticmethod
222222
@callback
223-
def async_get_options_flow(config_entry):
224-
return EnvoyOptionsFlowHandler(config_entry)
223+
def async_get_options_flow(config_entry: ConfigEntry):
224+
return EnvoyOptionsFlowHandler()
225225

226226

227227
class EnvoyOptionsFlowHandler(config_entries.OptionsFlow):
228228
"""Envoy config flow options handler."""
229229

230-
def __init__(self, config_entry):
231-
"""Initialize Envoy options flow."""
232-
self.config_entry = config_entry
233-
234230
async def async_step_init(self, _user_input=None):
235231
"""Manage the options."""
236232
return await self.async_step_user()

0 commit comments

Comments
 (0)