From a9bb06c8b0b5c00c731b8e447cf95bdd5a3b8bfe Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Tue, 8 Feb 2022 21:19:15 +0100 Subject: [PATCH 1/7] Fix translation --- .../garbage_collection/translations/sensor.cs.json | 2 +- .../garbage_collection/translations/sensor.de.json | 4 ++-- .../garbage_collection/translations/sensor.dk.json | 2 +- .../garbage_collection/translations/sensor.en.json | 2 +- .../garbage_collection/translations/sensor.es.json | 4 ++-- .../garbage_collection/translations/sensor.et.json | 4 ++-- .../garbage_collection/translations/sensor.fr.json | 4 ++-- .../garbage_collection/translations/sensor.it.json | 4 ++-- .../garbage_collection/translations/sensor.nl.json | 4 ++-- .../garbage_collection/translations/sensor.no.json | 2 +- .../garbage_collection/translations/sensor.pl.json | 4 ++-- .../garbage_collection/translations/sensor.se.json | 2 +- .../garbage_collection/translations/sensor.sk.json | 2 +- .../garbage_collection/translations/sensor.sl.json | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/custom_components/garbage_collection/translations/sensor.cs.json b/custom_components/garbage_collection/translations/sensor.cs.json index 15363a8..d017458 100644 --- a/custom_components/garbage_collection/translations/sensor.cs.json +++ b/custom_components/garbage_collection/translations/sensor.cs.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Dnes", "tomorrow": "Zítra" } diff --git a/custom_components/garbage_collection/translations/sensor.de.json b/custom_components/garbage_collection/translations/sensor.de.json index 30a9c90..59aa922 100644 --- a/custom_components/garbage_collection/translations/sensor.de.json +++ b/custom_components/garbage_collection/translations/sensor.de.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Heute", "tomorrow": "Morgen" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.dk.json b/custom_components/garbage_collection/translations/sensor.dk.json index 4dffc6c..dae75f3 100644 --- a/custom_components/garbage_collection/translations/sensor.dk.json +++ b/custom_components/garbage_collection/translations/sensor.dk.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "i dag", "tomorrow": "i morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.en.json b/custom_components/garbage_collection/translations/sensor.en.json index 2d945d2..9add739 100644 --- a/custom_components/garbage_collection/translations/sensor.en.json +++ b/custom_components/garbage_collection/translations/sensor.en.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Today", "tomorrow": "Tomorrow" } diff --git a/custom_components/garbage_collection/translations/sensor.es.json b/custom_components/garbage_collection/translations/sensor.es.json index 4f6d390..3e69e72 100644 --- a/custom_components/garbage_collection/translations/sensor.es.json +++ b/custom_components/garbage_collection/translations/sensor.es.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Hoy", "tomorrow": "Mañana" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.et.json b/custom_components/garbage_collection/translations/sensor.et.json index 0476600..7f75da0 100644 --- a/custom_components/garbage_collection/translations/sensor.et.json +++ b/custom_components/garbage_collection/translations/sensor.et.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Täna", "tomorrow": "Homme" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.fr.json b/custom_components/garbage_collection/translations/sensor.fr.json index a68d548..35ca6cf 100644 --- a/custom_components/garbage_collection/translations/sensor.fr.json +++ b/custom_components/garbage_collection/translations/sensor.fr.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Aujourd'hui", "tomorrow": "Demain" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.it.json b/custom_components/garbage_collection/translations/sensor.it.json index cc91c5a..a99b2bd 100644 --- a/custom_components/garbage_collection/translations/sensor.it.json +++ b/custom_components/garbage_collection/translations/sensor.it.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Oggi", "tomorrow": "Domani" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.nl.json b/custom_components/garbage_collection/translations/sensor.nl.json index 24635c0..2d962a2 100644 --- a/custom_components/garbage_collection/translations/sensor.nl.json +++ b/custom_components/garbage_collection/translations/sensor.nl.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Vandaag", "tomorrow": "Morgen" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.no.json b/custom_components/garbage_collection/translations/sensor.no.json index 9474f7d..08c9174 100644 --- a/custom_components/garbage_collection/translations/sensor.no.json +++ b/custom_components/garbage_collection/translations/sensor.no.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "I morgen", "tomorrow": "I dag" } diff --git a/custom_components/garbage_collection/translations/sensor.pl.json b/custom_components/garbage_collection/translations/sensor.pl.json index 91ca824..58e8944 100644 --- a/custom_components/garbage_collection/translations/sensor.pl.json +++ b/custom_components/garbage_collection/translations/sensor.pl.json @@ -1,8 +1,8 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Dzisiaj", "tomorrow": "Jutro" } } -} +} \ No newline at end of file diff --git a/custom_components/garbage_collection/translations/sensor.se.json b/custom_components/garbage_collection/translations/sensor.se.json index 0097804..eae7c62 100644 --- a/custom_components/garbage_collection/translations/sensor.se.json +++ b/custom_components/garbage_collection/translations/sensor.se.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Idag", "tomorrow": "Imorgon" } diff --git a/custom_components/garbage_collection/translations/sensor.sk.json b/custom_components/garbage_collection/translations/sensor.sk.json index b228ece..b6195f1 100644 --- a/custom_components/garbage_collection/translations/sensor.sk.json +++ b/custom_components/garbage_collection/translations/sensor.sk.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Dnes", "tomorrow": "Zajtra" } diff --git a/custom_components/garbage_collection/translations/sensor.sl.json b/custom_components/garbage_collection/translations/sensor.sl.json index 70b5643..e88ce1e 100644 --- a/custom_components/garbage_collection/translations/sensor.sl.json +++ b/custom_components/garbage_collection/translations/sensor.sl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "garbage_collection": { "today": "Danes", "tomorrow": "Jutri" } From 14791a159fe99bde2ec7a04afb7b5c9a72ebd2ce Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Tue, 8 Feb 2022 21:40:00 +0100 Subject: [PATCH 2/7] roll back translation --- .../garbage_collection/translations/sensor.cs.json | 2 +- .../garbage_collection/translations/sensor.de.json | 2 +- .../garbage_collection/translations/sensor.dk.json | 2 +- .../garbage_collection/translations/sensor.en.json | 2 +- .../garbage_collection/translations/sensor.es.json | 2 +- .../garbage_collection/translations/sensor.et.json | 2 +- .../garbage_collection/translations/sensor.fr.json | 2 +- .../garbage_collection/translations/sensor.it.json | 2 +- .../garbage_collection/translations/sensor.nl.json | 2 +- .../garbage_collection/translations/sensor.no.json | 2 +- .../garbage_collection/translations/sensor.pl.json | 2 +- .../garbage_collection/translations/sensor.se.json | 2 +- .../garbage_collection/translations/sensor.sk.json | 2 +- .../garbage_collection/translations/sensor.sl.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/custom_components/garbage_collection/translations/sensor.cs.json b/custom_components/garbage_collection/translations/sensor.cs.json index d017458..15363a8 100644 --- a/custom_components/garbage_collection/translations/sensor.cs.json +++ b/custom_components/garbage_collection/translations/sensor.cs.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Dnes", "tomorrow": "Zítra" } diff --git a/custom_components/garbage_collection/translations/sensor.de.json b/custom_components/garbage_collection/translations/sensor.de.json index 59aa922..c69923a 100644 --- a/custom_components/garbage_collection/translations/sensor.de.json +++ b/custom_components/garbage_collection/translations/sensor.de.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Heute", "tomorrow": "Morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.dk.json b/custom_components/garbage_collection/translations/sensor.dk.json index dae75f3..4dffc6c 100644 --- a/custom_components/garbage_collection/translations/sensor.dk.json +++ b/custom_components/garbage_collection/translations/sensor.dk.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "i dag", "tomorrow": "i morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.en.json b/custom_components/garbage_collection/translations/sensor.en.json index 9add739..2d945d2 100644 --- a/custom_components/garbage_collection/translations/sensor.en.json +++ b/custom_components/garbage_collection/translations/sensor.en.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Today", "tomorrow": "Tomorrow" } diff --git a/custom_components/garbage_collection/translations/sensor.es.json b/custom_components/garbage_collection/translations/sensor.es.json index 3e69e72..a02a09f 100644 --- a/custom_components/garbage_collection/translations/sensor.es.json +++ b/custom_components/garbage_collection/translations/sensor.es.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Hoy", "tomorrow": "Mañana" } diff --git a/custom_components/garbage_collection/translations/sensor.et.json b/custom_components/garbage_collection/translations/sensor.et.json index 7f75da0..dbec4c5 100644 --- a/custom_components/garbage_collection/translations/sensor.et.json +++ b/custom_components/garbage_collection/translations/sensor.et.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Täna", "tomorrow": "Homme" } diff --git a/custom_components/garbage_collection/translations/sensor.fr.json b/custom_components/garbage_collection/translations/sensor.fr.json index 35ca6cf..d385466 100644 --- a/custom_components/garbage_collection/translations/sensor.fr.json +++ b/custom_components/garbage_collection/translations/sensor.fr.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Aujourd'hui", "tomorrow": "Demain" } diff --git a/custom_components/garbage_collection/translations/sensor.it.json b/custom_components/garbage_collection/translations/sensor.it.json index a99b2bd..4864e4f 100644 --- a/custom_components/garbage_collection/translations/sensor.it.json +++ b/custom_components/garbage_collection/translations/sensor.it.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Oggi", "tomorrow": "Domani" } diff --git a/custom_components/garbage_collection/translations/sensor.nl.json b/custom_components/garbage_collection/translations/sensor.nl.json index 2d962a2..79cec1e 100644 --- a/custom_components/garbage_collection/translations/sensor.nl.json +++ b/custom_components/garbage_collection/translations/sensor.nl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Vandaag", "tomorrow": "Morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.no.json b/custom_components/garbage_collection/translations/sensor.no.json index 08c9174..9474f7d 100644 --- a/custom_components/garbage_collection/translations/sensor.no.json +++ b/custom_components/garbage_collection/translations/sensor.no.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "I morgen", "tomorrow": "I dag" } diff --git a/custom_components/garbage_collection/translations/sensor.pl.json b/custom_components/garbage_collection/translations/sensor.pl.json index 58e8944..dbc7007 100644 --- a/custom_components/garbage_collection/translations/sensor.pl.json +++ b/custom_components/garbage_collection/translations/sensor.pl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Dzisiaj", "tomorrow": "Jutro" } diff --git a/custom_components/garbage_collection/translations/sensor.se.json b/custom_components/garbage_collection/translations/sensor.se.json index eae7c62..0097804 100644 --- a/custom_components/garbage_collection/translations/sensor.se.json +++ b/custom_components/garbage_collection/translations/sensor.se.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Idag", "tomorrow": "Imorgon" } diff --git a/custom_components/garbage_collection/translations/sensor.sk.json b/custom_components/garbage_collection/translations/sensor.sk.json index b6195f1..b228ece 100644 --- a/custom_components/garbage_collection/translations/sensor.sk.json +++ b/custom_components/garbage_collection/translations/sensor.sk.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Dnes", "tomorrow": "Zajtra" } diff --git a/custom_components/garbage_collection/translations/sensor.sl.json b/custom_components/garbage_collection/translations/sensor.sl.json index e88ce1e..70b5643 100644 --- a/custom_components/garbage_collection/translations/sensor.sl.json +++ b/custom_components/garbage_collection/translations/sensor.sl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection": { + "garbage_collection__schedule": { "today": "Danes", "tomorrow": "Jutri" } From cae1abce35c5f33f0bad1f879ab8afc610bfcd35 Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Tue, 8 Feb 2022 22:11:38 +0100 Subject: [PATCH 3/7] Replace device class by _ in state translation --- .../garbage_collection/translations/sensor.cs.json | 2 +- .../garbage_collection/translations/sensor.de.json | 2 +- .../garbage_collection/translations/sensor.dk.json | 2 +- .../garbage_collection/translations/sensor.en.json | 2 +- .../garbage_collection/translations/sensor.es.json | 2 +- .../garbage_collection/translations/sensor.et.json | 2 +- .../garbage_collection/translations/sensor.fr.json | 2 +- .../garbage_collection/translations/sensor.it.json | 2 +- .../garbage_collection/translations/sensor.nl.json | 2 +- .../garbage_collection/translations/sensor.no.json | 2 +- .../garbage_collection/translations/sensor.pl.json | 2 +- .../garbage_collection/translations/sensor.se.json | 2 +- .../garbage_collection/translations/sensor.sk.json | 2 +- .../garbage_collection/translations/sensor.sl.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/custom_components/garbage_collection/translations/sensor.cs.json b/custom_components/garbage_collection/translations/sensor.cs.json index 15363a8..cfb65f8 100644 --- a/custom_components/garbage_collection/translations/sensor.cs.json +++ b/custom_components/garbage_collection/translations/sensor.cs.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Dnes", "tomorrow": "Zítra" } diff --git a/custom_components/garbage_collection/translations/sensor.de.json b/custom_components/garbage_collection/translations/sensor.de.json index c69923a..b41b4b8 100644 --- a/custom_components/garbage_collection/translations/sensor.de.json +++ b/custom_components/garbage_collection/translations/sensor.de.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Heute", "tomorrow": "Morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.dk.json b/custom_components/garbage_collection/translations/sensor.dk.json index 4dffc6c..bd5c37b 100644 --- a/custom_components/garbage_collection/translations/sensor.dk.json +++ b/custom_components/garbage_collection/translations/sensor.dk.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "i dag", "tomorrow": "i morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.en.json b/custom_components/garbage_collection/translations/sensor.en.json index 2d945d2..ba866d4 100644 --- a/custom_components/garbage_collection/translations/sensor.en.json +++ b/custom_components/garbage_collection/translations/sensor.en.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Today", "tomorrow": "Tomorrow" } diff --git a/custom_components/garbage_collection/translations/sensor.es.json b/custom_components/garbage_collection/translations/sensor.es.json index a02a09f..80d89d0 100644 --- a/custom_components/garbage_collection/translations/sensor.es.json +++ b/custom_components/garbage_collection/translations/sensor.es.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Hoy", "tomorrow": "Mañana" } diff --git a/custom_components/garbage_collection/translations/sensor.et.json b/custom_components/garbage_collection/translations/sensor.et.json index dbec4c5..454bf19 100644 --- a/custom_components/garbage_collection/translations/sensor.et.json +++ b/custom_components/garbage_collection/translations/sensor.et.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Täna", "tomorrow": "Homme" } diff --git a/custom_components/garbage_collection/translations/sensor.fr.json b/custom_components/garbage_collection/translations/sensor.fr.json index d385466..e47e282 100644 --- a/custom_components/garbage_collection/translations/sensor.fr.json +++ b/custom_components/garbage_collection/translations/sensor.fr.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Aujourd'hui", "tomorrow": "Demain" } diff --git a/custom_components/garbage_collection/translations/sensor.it.json b/custom_components/garbage_collection/translations/sensor.it.json index 4864e4f..496248a 100644 --- a/custom_components/garbage_collection/translations/sensor.it.json +++ b/custom_components/garbage_collection/translations/sensor.it.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Oggi", "tomorrow": "Domani" } diff --git a/custom_components/garbage_collection/translations/sensor.nl.json b/custom_components/garbage_collection/translations/sensor.nl.json index 79cec1e..404cf48 100644 --- a/custom_components/garbage_collection/translations/sensor.nl.json +++ b/custom_components/garbage_collection/translations/sensor.nl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Vandaag", "tomorrow": "Morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.no.json b/custom_components/garbage_collection/translations/sensor.no.json index 9474f7d..595b0dc 100644 --- a/custom_components/garbage_collection/translations/sensor.no.json +++ b/custom_components/garbage_collection/translations/sensor.no.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "I morgen", "tomorrow": "I dag" } diff --git a/custom_components/garbage_collection/translations/sensor.pl.json b/custom_components/garbage_collection/translations/sensor.pl.json index dbc7007..2775e10 100644 --- a/custom_components/garbage_collection/translations/sensor.pl.json +++ b/custom_components/garbage_collection/translations/sensor.pl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Dzisiaj", "tomorrow": "Jutro" } diff --git a/custom_components/garbage_collection/translations/sensor.se.json b/custom_components/garbage_collection/translations/sensor.se.json index 0097804..0a959b5 100644 --- a/custom_components/garbage_collection/translations/sensor.se.json +++ b/custom_components/garbage_collection/translations/sensor.se.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Idag", "tomorrow": "Imorgon" } diff --git a/custom_components/garbage_collection/translations/sensor.sk.json b/custom_components/garbage_collection/translations/sensor.sk.json index b228ece..2ea5687 100644 --- a/custom_components/garbage_collection/translations/sensor.sk.json +++ b/custom_components/garbage_collection/translations/sensor.sk.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Dnes", "tomorrow": "Zajtra" } diff --git a/custom_components/garbage_collection/translations/sensor.sl.json b/custom_components/garbage_collection/translations/sensor.sl.json index 70b5643..b2c27c9 100644 --- a/custom_components/garbage_collection/translations/sensor.sl.json +++ b/custom_components/garbage_collection/translations/sensor.sl.json @@ -1,6 +1,6 @@ { "state": { - "garbage_collection__schedule": { + "_": { "today": "Danes", "tomorrow": "Jutri" } From c55a1b6bb8ec3e2b55f1e0e9a3aab1ec04c9e262 Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Tue, 8 Feb 2022 22:22:52 +0100 Subject: [PATCH 4/7] revert translations --- .../garbage_collection/translations/sensor.cs.json | 2 +- .../garbage_collection/translations/sensor.de.json | 2 +- .../garbage_collection/translations/sensor.dk.json | 2 +- .../garbage_collection/translations/sensor.en.json | 2 +- .../garbage_collection/translations/sensor.es.json | 2 +- .../garbage_collection/translations/sensor.et.json | 2 +- .../garbage_collection/translations/sensor.fr.json | 2 +- .../garbage_collection/translations/sensor.it.json | 2 +- .../garbage_collection/translations/sensor.nl.json | 2 +- .../garbage_collection/translations/sensor.no.json | 2 +- .../garbage_collection/translations/sensor.pl.json | 2 +- .../garbage_collection/translations/sensor.se.json | 2 +- .../garbage_collection/translations/sensor.sk.json | 2 +- .../garbage_collection/translations/sensor.sl.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/custom_components/garbage_collection/translations/sensor.cs.json b/custom_components/garbage_collection/translations/sensor.cs.json index cfb65f8..15363a8 100644 --- a/custom_components/garbage_collection/translations/sensor.cs.json +++ b/custom_components/garbage_collection/translations/sensor.cs.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Dnes", "tomorrow": "Zítra" } diff --git a/custom_components/garbage_collection/translations/sensor.de.json b/custom_components/garbage_collection/translations/sensor.de.json index b41b4b8..c69923a 100644 --- a/custom_components/garbage_collection/translations/sensor.de.json +++ b/custom_components/garbage_collection/translations/sensor.de.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Heute", "tomorrow": "Morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.dk.json b/custom_components/garbage_collection/translations/sensor.dk.json index bd5c37b..4dffc6c 100644 --- a/custom_components/garbage_collection/translations/sensor.dk.json +++ b/custom_components/garbage_collection/translations/sensor.dk.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "i dag", "tomorrow": "i morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.en.json b/custom_components/garbage_collection/translations/sensor.en.json index ba866d4..2d945d2 100644 --- a/custom_components/garbage_collection/translations/sensor.en.json +++ b/custom_components/garbage_collection/translations/sensor.en.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Today", "tomorrow": "Tomorrow" } diff --git a/custom_components/garbage_collection/translations/sensor.es.json b/custom_components/garbage_collection/translations/sensor.es.json index 80d89d0..a02a09f 100644 --- a/custom_components/garbage_collection/translations/sensor.es.json +++ b/custom_components/garbage_collection/translations/sensor.es.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Hoy", "tomorrow": "Mañana" } diff --git a/custom_components/garbage_collection/translations/sensor.et.json b/custom_components/garbage_collection/translations/sensor.et.json index 454bf19..dbec4c5 100644 --- a/custom_components/garbage_collection/translations/sensor.et.json +++ b/custom_components/garbage_collection/translations/sensor.et.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Täna", "tomorrow": "Homme" } diff --git a/custom_components/garbage_collection/translations/sensor.fr.json b/custom_components/garbage_collection/translations/sensor.fr.json index e47e282..d385466 100644 --- a/custom_components/garbage_collection/translations/sensor.fr.json +++ b/custom_components/garbage_collection/translations/sensor.fr.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Aujourd'hui", "tomorrow": "Demain" } diff --git a/custom_components/garbage_collection/translations/sensor.it.json b/custom_components/garbage_collection/translations/sensor.it.json index 496248a..4864e4f 100644 --- a/custom_components/garbage_collection/translations/sensor.it.json +++ b/custom_components/garbage_collection/translations/sensor.it.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Oggi", "tomorrow": "Domani" } diff --git a/custom_components/garbage_collection/translations/sensor.nl.json b/custom_components/garbage_collection/translations/sensor.nl.json index 404cf48..79cec1e 100644 --- a/custom_components/garbage_collection/translations/sensor.nl.json +++ b/custom_components/garbage_collection/translations/sensor.nl.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Vandaag", "tomorrow": "Morgen" } diff --git a/custom_components/garbage_collection/translations/sensor.no.json b/custom_components/garbage_collection/translations/sensor.no.json index 595b0dc..9474f7d 100644 --- a/custom_components/garbage_collection/translations/sensor.no.json +++ b/custom_components/garbage_collection/translations/sensor.no.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "I morgen", "tomorrow": "I dag" } diff --git a/custom_components/garbage_collection/translations/sensor.pl.json b/custom_components/garbage_collection/translations/sensor.pl.json index 2775e10..dbc7007 100644 --- a/custom_components/garbage_collection/translations/sensor.pl.json +++ b/custom_components/garbage_collection/translations/sensor.pl.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Dzisiaj", "tomorrow": "Jutro" } diff --git a/custom_components/garbage_collection/translations/sensor.se.json b/custom_components/garbage_collection/translations/sensor.se.json index 0a959b5..0097804 100644 --- a/custom_components/garbage_collection/translations/sensor.se.json +++ b/custom_components/garbage_collection/translations/sensor.se.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Idag", "tomorrow": "Imorgon" } diff --git a/custom_components/garbage_collection/translations/sensor.sk.json b/custom_components/garbage_collection/translations/sensor.sk.json index 2ea5687..b228ece 100644 --- a/custom_components/garbage_collection/translations/sensor.sk.json +++ b/custom_components/garbage_collection/translations/sensor.sk.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Dnes", "tomorrow": "Zajtra" } diff --git a/custom_components/garbage_collection/translations/sensor.sl.json b/custom_components/garbage_collection/translations/sensor.sl.json index b2c27c9..70b5643 100644 --- a/custom_components/garbage_collection/translations/sensor.sl.json +++ b/custom_components/garbage_collection/translations/sensor.sl.json @@ -1,6 +1,6 @@ { "state": { - "_": { + "garbage_collection__schedule": { "today": "Danes", "tomorrow": "Jutri" } From 9265c9edcc8f32333cac6beb178c1042e530a0b3 Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Tue, 8 Feb 2022 23:19:17 +0100 Subject: [PATCH 5/7] add device class (needed for translations) --- custom_components/garbage_collection/sensor.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/custom_components/garbage_collection/sensor.py b/custom_components/garbage_collection/sensor.py index 0e0ddbb..88ae790 100644 --- a/custom_components/garbage_collection/sensor.py +++ b/custom_components/garbage_collection/sensor.py @@ -7,7 +7,13 @@ import homeassistant.util.dt as dt_util from dateutil.parser import ParserError, parse from dateutil.relativedelta import relativedelta -from homeassistant.const import ATTR_HIDDEN, CONF_ENTITIES, CONF_NAME, WEEKDAYS +from homeassistant.const import ( + ATTR_DEVICE_CLASS, + ATTR_HIDDEN, + CONF_ENTITIES, + CONF_NAME, + WEEKDAYS, +) from homeassistant.helpers import device_registry as dr from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.restore_state import RestoreEntity @@ -272,10 +278,11 @@ def extra_state_attributes(self): res[const.ATTR_DAYS] = self._days res[const.ATTR_LAST_COLLECTION] = self.last_collection res[const.ATTR_LAST_UPDATED] = self._last_updated + res[ATTR_DEVICE_CLASS] = self.DEVICE_CLASS return res @property - def DEVICE_CLASS(self): + def DEVICE_CLASS(self): # pylint: disable=C0103 """Return the class of the sensor.""" return const.DEVICE_CLASS From 6b260391f067a42a294746a83a5cd054de8dbcc3 Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Tue, 8 Feb 2022 23:21:42 +0100 Subject: [PATCH 6/7] Fixing translations --- custom_components/garbage_collection/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/garbage_collection/sensor.py b/custom_components/garbage_collection/sensor.py index 88ae790..4035904 100644 --- a/custom_components/garbage_collection/sensor.py +++ b/custom_components/garbage_collection/sensor.py @@ -278,6 +278,7 @@ def extra_state_attributes(self): res[const.ATTR_DAYS] = self._days res[const.ATTR_LAST_COLLECTION] = self.last_collection res[const.ATTR_LAST_UPDATED] = self._last_updated + # Needed for translations to work res[ATTR_DEVICE_CLASS] = self.DEVICE_CLASS return res From 6168d22df8e9b21830f0c9f6d1b4c503d594de69 Mon Sep 17 00:00:00 2001 From: bruxy70 Date: Wed, 9 Feb 2022 11:46:06 +0100 Subject: [PATCH 7/7] Bug Report templates --- .github/ISSUE_TEMPLATE/bug_report.yaml | 13 +++++++++---- .github/ISSUE_TEMPLATE/feature_request.yaml | 9 +++++---- .github/ISSUE_TEMPLATE/question.yaml | 9 +++++---- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 1b8b949..d853b78 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -3,11 +3,16 @@ name: "Bug report" description: Create a report to help us improve labels: "bug" body: -- type: markdown +- type: checkboxes attributes: - value: | - Before you submit a new bug report, please check the [frequently asked questions and limitations](https://github.com/bruxy70/Garbage-Collection/wiki/Review-before-submitting-a-new-issue-or-feature-request). - Also, please search through the existing issues to see if others have had the same problem. + label: Before you submit a new bug report, please check that + options: + - label: I have read [frequently asked questions and limitations](https://github.com/bruxy70/Garbage-Collection/wiki/Review-before-submitting-a-new-issue-or-feature-request) + required: true + - label: I'm running the newest version of Garbage Collection, or the next pre-release. + required: true + - label: I have enabled debug logging for my installation. + required: true - type: textarea attributes: label: "Describe the bug" diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index c273915..a421091 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -3,11 +3,12 @@ name: "Feature request" description: Suggest an idea for this project labels: "enhancement" body: - - type: markdown + - type: checkboxes attributes: - value: | - Before you submit a new feature request, please check the [frequently asked questions and limitations](https://github.com/bruxy70/Garbage-Collection/wiki/Review-before-submitting-a-new-issue-or-feature-request). - Also, please search through the existing issues to see if others made the same suggestion. + label: Before you submit a new bug report, please check that + options: + - label: I have read [frequently asked questions and limitations](https://github.com/bruxy70/Garbage-Collection/wiki/Review-before-submitting-a-new-issue-or-feature-request) + required: true - type: textarea attributes: label: "Is your feature request related to a problem? Please describe." diff --git a/.github/ISSUE_TEMPLATE/question.yaml b/.github/ISSUE_TEMPLATE/question.yaml index 1aae7a6..3ba4ba2 100644 --- a/.github/ISSUE_TEMPLATE/question.yaml +++ b/.github/ISSUE_TEMPLATE/question.yaml @@ -3,11 +3,12 @@ name: "Question" description: I have a question, or need a help with the configuration of the integration or Lovelace labels: "question" body: - - type: markdown + - type: checkboxes attributes: - value: | - Before you submit a new question, please check the [frequently asked questions and limitations](https://github.com/bruxy70/Garbage-Collection/wiki/Review-before-submitting-a-new-issue-or-feature-request). - Also, please search through the existing issues to see if others made the same question. + label: Before you submit a new bug report, please check that + options: + - label: I have read [frequently asked questions and limitations](https://github.com/bruxy70/Garbage-Collection/wiki/Review-before-submitting-a-new-issue-or-feature-request) + required: true - type: textarea attributes: label: "Write your question here"