From 9ae618fff9ca027632de3d42f341a33230aa4f48 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Tue, 25 Nov 2025 20:42:15 +0000 Subject: [PATCH] refactor(config_flow): rename TibberPricesFlowHandler to TibberPricesConfigFlowHandler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renamed main config flow handler class for clarity: - TibberPricesFlowHandler → TibberPricesConfigFlowHandler Updated imports in: - config_flow.py (import alias) - config_flow_handlers/__init__.py (exports) Reason: More explicit name distinguishes from OptionsFlowHandler and SubentryFlowHandler. Follows naming convention of other flow handlers. Impact: No functional changes, improved code readability. --- custom_components/tibber_prices/config_flow.py | 2 +- .../tibber_prices/config_flow_handlers/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/tibber_prices/config_flow.py b/custom_components/tibber_prices/config_flow.py index 7de93d5..f5b4654 100644 --- a/custom_components/tibber_prices/config_flow.py +++ b/custom_components/tibber_prices/config_flow.py @@ -25,7 +25,7 @@ from .config_flow_handlers.schemas import ( from .config_flow_handlers.subentry_flow import ( TibberPricesSubentryFlowHandler as SubentryFlowHandler, ) -from .config_flow_handlers.user_flow import TibberPricesFlowHandler as ConfigFlow +from .config_flow_handlers.user_flow import TibberPricesConfigFlowHandler as ConfigFlow from .config_flow_handlers.validators import ( TibberPricesCannotConnectError, TibberPricesInvalidAuthError, diff --git a/custom_components/tibber_prices/config_flow_handlers/__init__.py b/custom_components/tibber_prices/config_flow_handlers/__init__.py index 68ebe0b..72837a3 100644 --- a/custom_components/tibber_prices/config_flow_handlers/__init__.py +++ b/custom_components/tibber_prices/config_flow_handlers/__init__.py @@ -39,7 +39,7 @@ from custom_components.tibber_prices.config_flow_handlers.subentry_flow import ( TibberPricesSubentryFlowHandler, ) from custom_components.tibber_prices.config_flow_handlers.user_flow import ( - TibberPricesFlowHandler, + TibberPricesConfigFlowHandler, ) from custom_components.tibber_prices.config_flow_handlers.validators import ( TibberPricesCannotConnectError, @@ -49,7 +49,7 @@ from custom_components.tibber_prices.config_flow_handlers.validators import ( __all__ = [ "TibberPricesCannotConnectError", - "TibberPricesFlowHandler", + "TibberPricesConfigFlowHandler", "TibberPricesInvalidAuthError", "TibberPricesOptionsFlowHandler", "TibberPricesSubentryFlowHandler",