From 77b48c9ebe03358516e29c45f428db6b5aa087b6 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Sun, 22 Dec 2024 19:56:39 -0500 Subject: [PATCH] Fix options flow (#657) * fix config flow * Update config_flow.py fix docstring --- custom_components/wyzeapi/config_flow.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/custom_components/wyzeapi/config_flow.py b/custom_components/wyzeapi/config_flow.py index 2af729cd..ceb06f7f 100644 --- a/custom_components/wyzeapi/config_flow.py +++ b/custom_components/wyzeapi/config_flow.py @@ -131,13 +131,16 @@ async def async_step_reauth(self, user_input=None): @staticmethod @callback - def async_get_options_flow(config_entry): - """Get the options flow for this handler.""" - return OptionsFlowHandler(config_entry) + def async_get_options_flow( + config_entry: config_entries.ConfigEntry + ) -> OptionsFlowHandler: + """Create the Wyze options flow.""" + return OptionsFlowHandler() class OptionsFlowHandler(config_entries.OptionsFlow): """Handle an option flow for Wyze.""" + async def async_step_init(self, user_input=None): """Handle options flow.""" if user_input is not None: