From 9ec0b539e1b6117f10d20d8c6dd1ef21c23aba0e Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Sat, 14 Jun 2025 20:51:11 +0200 Subject: [PATCH 1/3] remove deprecated constructor in option flow --- custom_components/bluetti_bt/config_flow.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/custom_components/bluetti_bt/config_flow.py b/custom_components/bluetti_bt/config_flow.py index a8f8a26..7597813 100644 --- a/custom_components/bluetti_bt/config_flow.py +++ b/custom_components/bluetti_bt/config_flow.py @@ -128,10 +128,6 @@ class BluettiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class OptionsFlowHandler(config_entries.OptionsFlow): """Handle a option flow.""" - def __init__(self, config_entry: config_entries.ConfigEntry) -> None: - """Initialize options flow.""" - self.config_entry = config_entry - async def async_step_init( self, user_input: dict[str, Any] | None = None ) -> FlowResult: From 869f80314bcc63b8f72c6de91ae518e140eab426 Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Sat, 14 Jun 2025 21:12:02 +0200 Subject: [PATCH 2/3] fix option flow --- custom_components/bluetti_bt/config_flow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/bluetti_bt/config_flow.py b/custom_components/bluetti_bt/config_flow.py index 7597813..b713f85 100644 --- a/custom_components/bluetti_bt/config_flow.py +++ b/custom_components/bluetti_bt/config_flow.py @@ -128,6 +128,10 @@ class BluettiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class OptionsFlowHandler(config_entries.OptionsFlow): """Handle a option flow.""" + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: + """Initialize options flow.""" + super().__init__() + async def async_step_init( self, user_input: dict[str, Any] | None = None ) -> FlowResult: From 5204c165d8d99410dedae8043a905a5d6acb4ca9 Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Sat, 14 Jun 2025 21:16:12 +0200 Subject: [PATCH 3/3] bump version --- custom_components/bluetti_bt/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/bluetti_bt/manifest.json b/custom_components/bluetti_bt/manifest.json index 8e4c8e6..eb2eb59 100644 --- a/custom_components/bluetti_bt/manifest.json +++ b/custom_components/bluetti_bt/manifest.json @@ -24,5 +24,5 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/Patrick762/hassio-bluetti-bt/issues", "requirements": [], - "version": "0.1.4" + "version": "0.1.5" }