mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 21:33:39 +00:00
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.
52 lines
1.5 KiB
Python
52 lines
1.5 KiB
Python
"""
|
|
Config flow for Tibber Prices integration.
|
|
|
|
This module serves as the entry point for Home Assistant's config flow discovery.
|
|
The actual implementation is in the config_flow_handlers package.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .config_flow_handlers.options_flow import (
|
|
TibberPricesOptionsFlowHandler as OptionsFlowHandler,
|
|
)
|
|
from .config_flow_handlers.schemas import (
|
|
get_best_price_schema,
|
|
get_options_init_schema,
|
|
get_peak_price_schema,
|
|
get_price_rating_schema,
|
|
get_price_trend_schema,
|
|
get_reauth_confirm_schema,
|
|
get_select_home_schema,
|
|
get_subentry_init_schema,
|
|
get_user_schema,
|
|
get_volatility_schema,
|
|
)
|
|
from .config_flow_handlers.subentry_flow import (
|
|
TibberPricesSubentryFlowHandler as SubentryFlowHandler,
|
|
)
|
|
from .config_flow_handlers.user_flow import TibberPricesConfigFlowHandler as ConfigFlow
|
|
from .config_flow_handlers.validators import (
|
|
TibberPricesCannotConnectError,
|
|
TibberPricesInvalidAuthError,
|
|
validate_api_token,
|
|
)
|
|
|
|
__all__ = [
|
|
"ConfigFlow",
|
|
"OptionsFlowHandler",
|
|
"SubentryFlowHandler",
|
|
"TibberPricesCannotConnectError",
|
|
"TibberPricesInvalidAuthError",
|
|
"get_best_price_schema",
|
|
"get_options_init_schema",
|
|
"get_peak_price_schema",
|
|
"get_price_rating_schema",
|
|
"get_price_trend_schema",
|
|
"get_reauth_confirm_schema",
|
|
"get_select_home_schema",
|
|
"get_subentry_init_schema",
|
|
"get_user_schema",
|
|
"get_volatility_schema",
|
|
"validate_api_token",
|
|
]
|