fix options flow

This commit is contained in:
Julian Pawlowski 2025-11-02 17:27:37 +00:00
parent e02630440a
commit 6b3d299d3d
3 changed files with 13 additions and 5 deletions

View file

@ -73,7 +73,7 @@ class TibberPricesFlowHandler(ConfigFlow, domain=DOMAIN):
@staticmethod @staticmethod
@callback @callback
def async_get_options_flow() -> OptionsFlow: def async_get_options_flow(config_entry: ConfigEntry) -> OptionsFlow: # noqa: ARG004
"""Create an options flow for this configentry.""" """Create an options flow for this configentry."""
return TibberPricesOptionsFlowHandler() return TibberPricesOptionsFlowHandler()

View file

@ -41,7 +41,11 @@
}, },
"config_subentries": { "config_subentries": {
"home": { "home": {
"title": "Zuhause hinzufügen", "initiate_flow": {
"user": "Tibber Zuhause hinzufügen"
},
"title": "Tibber Zuhause hinzufügen",
"description": "Füge ein weiteres Tibber Zuhause zu deiner Integration hinzu",
"step": { "step": {
"user": { "user": {
"title": "Tibber Zuhause hinzufügen", "title": "Tibber Zuhause hinzufügen",
@ -59,7 +63,7 @@
"no_access_token": "Kein Zugriffstoken verfügbar", "no_access_token": "Kein Zugriffstoken verfügbar",
"home_not_found": "Ausgewähltes Zuhause nicht gefunden", "home_not_found": "Ausgewähltes Zuhause nicht gefunden",
"api_error": "Fehler beim Abrufen der Zuhause von der Tibber API", "api_error": "Fehler beim Abrufen der Zuhause von der Tibber API",
"no_available_homes": "Keine weiteren Zuhause zum Hinzufügen verfügbar" "no_available_homes": "Keine zusätzlichen Zuhause verfügbar. Alle Zuhause von deinem Tibber-Konto wurden bereits hinzugefügt."
} }
} }
}, },

View file

@ -41,11 +41,15 @@
}, },
"config_subentries": { "config_subentries": {
"home": { "home": {
"title": "Add Home", "initiate_flow": {
"user": "Add Tibber Home"
},
"title": "Add Tibber Home",
"description": "Add another Tibber home to your integration",
"step": { "step": {
"user": { "user": {
"title": "Add Tibber Home", "title": "Add Tibber Home",
"description": "Select a home to add to your Tibber integration.\n\n**Note:** After adding this home, you can add additional homes from the integration's context menu by selecting \"Add Home\".", "description": "Select a home to add to your Tibber integration.\n\n**Note:** After adding this home, you can add additional homes from the integration's context menu by selecting \"Add Tibber Home\".",
"data": { "data": {
"home_id": "Home" "home_id": "Home"
} }