Skip to content

Commit

Permalink
Merge pull request #196 from vincentwolsink/config_entries
Browse files Browse the repository at this point in the history
Remove setting config_entry explicitly
  • Loading branch information
vincentwolsink authored Dec 15, 2024
2 parents 5efafc7 + a84c11d commit dce6bc0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions custom_components/enphase_envoy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,13 @@ async def async_step_user(

@staticmethod
@callback
def async_get_options_flow(config_entry):
return EnvoyOptionsFlowHandler(config_entry)
def async_get_options_flow(config_entry: ConfigEntry):
return EnvoyOptionsFlowHandler()


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

def __init__(self, config_entry):
"""Initialize Envoy options flow."""
self.config_entry = config_entry

async def async_step_init(self, _user_input=None):
"""Manage the options."""
return await self.async_step_user()
Expand Down

0 comments on commit dce6bc0

Please sign in to comment.