mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
refactor(config_flow): disable subentry flow temporarily due to incomplete time-travel feature
This commit is contained in:
parent
50021ce3ba
commit
7c0000039e
1 changed files with 6 additions and 4 deletions
|
|
@ -15,9 +15,6 @@ from custom_components.tibber_prices.config_flow_handlers.schemas import (
|
||||||
get_select_home_schema,
|
get_select_home_schema,
|
||||||
get_user_schema,
|
get_user_schema,
|
||||||
)
|
)
|
||||||
from custom_components.tibber_prices.config_flow_handlers.subentry_flow import (
|
|
||||||
TibberPricesSubentryFlowHandler,
|
|
||||||
)
|
|
||||||
from custom_components.tibber_prices.config_flow_handlers.validators import (
|
from custom_components.tibber_prices.config_flow_handlers.validators import (
|
||||||
TibberPricesCannotConnectError,
|
TibberPricesCannotConnectError,
|
||||||
TibberPricesInvalidAuthError,
|
TibberPricesInvalidAuthError,
|
||||||
|
|
@ -66,7 +63,12 @@ class TibberPricesConfigFlowHandler(ConfigFlow, domain=DOMAIN):
|
||||||
config_entry: ConfigEntry, # noqa: ARG003
|
config_entry: ConfigEntry, # noqa: ARG003
|
||||||
) -> dict[str, type[ConfigSubentryFlow]]:
|
) -> dict[str, type[ConfigSubentryFlow]]:
|
||||||
"""Return subentries supported by this integration."""
|
"""Return subentries supported by this integration."""
|
||||||
return {"home": TibberPricesSubentryFlowHandler}
|
# Temporarily disabled: Time-travel feature not yet fully implemented
|
||||||
|
# When enabled, this causes "Devices that don't belong to a sub-entry" warning
|
||||||
|
# because subentries don't have their own entities yet.
|
||||||
|
# See: https://github.com/home-assistant/core/issues/147570
|
||||||
|
# Will be re-enabled when time-travel functionality is implemented
|
||||||
|
return {}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@callback
|
@callback
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue