From a84c11d913750d879707130b29fb1b4bd105ebe3 Mon Sep 17 00:00:00 2001 From: Vincent Wolsink Date: Sun, 15 Dec 2024 07:49:31 +0100 Subject: [PATCH] Remove setting configflow explicitly --- custom_components/enphase_envoy/config_flow.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/custom_components/enphase_envoy/config_flow.py b/custom_components/enphase_envoy/config_flow.py index 04f2d58..e1b36f0 100644 --- a/custom_components/enphase_envoy/config_flow.py +++ b/custom_components/enphase_envoy/config_flow.py @@ -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()