mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
fix options flow
This commit is contained in:
parent
e02630440a
commit
6b3d299d3d
3 changed files with 13 additions and 5 deletions
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue