From af19358ac76a1c8d2b784f52a7cb97d3f9bef22f Mon Sep 17 00:00:00 2001 From: schizza Date: Mon, 18 Aug 2025 10:55:37 +0200 Subject: [PATCH] Adds battery state translations Adds translations for the battery state of the outside sensor to both the English and Czech language files. This change provides more descriptive and user-friendly information about the battery status. --- custom_components/sws12500/strings.json | 9 ++++++++- custom_components/sws12500/translations/cs.json | 9 ++++++++- custom_components/sws12500/translations/en.json | 9 ++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/custom_components/sws12500/strings.json b/custom_components/sws12500/strings.json index 7260ffa..3472af0 100644 --- a/custom_components/sws12500/strings.json +++ b/custom_components/sws12500/strings.json @@ -131,11 +131,18 @@ "wnw": "WNW", "nw": "NW", "nnw": "NNW" + }, + "outside_battery": { + "name": "Outside battery level", + "state": { + "normal": "OK", + "low": "Low", + "unknown": "Unknown / drained out" + } } } } }, - "outside_battery": { "name": "Outside battery level" }, "notify": { "added": { "title": "New sensors for SWS 12500 found.", diff --git a/custom_components/sws12500/translations/cs.json b/custom_components/sws12500/translations/cs.json index e6009ef..8da9943 100644 --- a/custom_components/sws12500/translations/cs.json +++ b/custom_components/sws12500/translations/cs.json @@ -136,10 +136,17 @@ "nw": "SZ", "nnw": "SSZ" } + }, + "outside_battery": { + "name": "Stav nabití venkovní baterie", + "state": { + "low": "Nízká", + "normal": "Normální", + "unknown": "Neznámá / zcela vybitá" + } } } }, - "outside_battery": { "name": "Vnější úroveň nabití baterie" }, "notify": { "added": { "title": "Nalezeny nové senzory pro SWS 12500.", diff --git a/custom_components/sws12500/translations/en.json b/custom_components/sws12500/translations/en.json index f89b307..b0f3567 100644 --- a/custom_components/sws12500/translations/en.json +++ b/custom_components/sws12500/translations/en.json @@ -137,7 +137,14 @@ "nnw": "NNW" } }, - "outside_battery": { "name": "Outside battery level" } + "outside_battery": { + "name": "Outside battery level", + "state": { + "normal": "OK", + "low": "Low", + "unknown": "Unknown / drained out" + } + } } }, "notify": {