From ba5a3b529d747284a0de913487cbb70c0c2d89a8 Mon Sep 17 00:00:00 2001 From: galaxysj Date: Sun, 2 Aug 2026 11:53:09 +0900 Subject: [PATCH] Add dishwasher course labels --- custom_components/localthings/translations/cs.json | 8 +++++++- custom_components/localthings/translations/en.json | 8 +++++++- custom_components/localthings/translations/nl.json | 8 +++++++- tests/test_translations.py | 14 ++++++++++++++ 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/custom_components/localthings/translations/cs.json b/custom_components/localthings/translations/cs.json index 567f997..fe1a0d3 100644 --- a/custom_components/localthings/translations/cs.json +++ b/custom_components/localthings/translations/cs.json @@ -280,7 +280,13 @@ "07": "Předoplach", "8d": "Hrnce a pánve", "8e": "Plast", - "8f": "Dětské potřeby" + "8f": "Dětské potřeby", + "82": "Auto", + "8a": "Normal", + "a7": "Heavy", + "a8": "Express", + "8c": "Extra Silence", + "88": "Self Clean" } }, "dispense_type": { diff --git a/custom_components/localthings/translations/en.json b/custom_components/localthings/translations/en.json index e0f678d..8654496 100644 --- a/custom_components/localthings/translations/en.json +++ b/custom_components/localthings/translations/en.json @@ -280,7 +280,13 @@ "07": "Pre blast", "8d": "Pots and pans", "8e": "Plastic", - "8f": "Baby Care" + "8f": "Baby Care", + "82": "Auto", + "8a": "Normal", + "a7": "Heavy", + "a8": "Express", + "8c": "Extra Silence", + "88": "Self Clean" } }, "dispense_type": { diff --git a/custom_components/localthings/translations/nl.json b/custom_components/localthings/translations/nl.json index 4d9b936..624059d 100644 --- a/custom_components/localthings/translations/nl.json +++ b/custom_components/localthings/translations/nl.json @@ -280,7 +280,13 @@ "07": "Voorspoelen", "8d": "Potten en pannen", "8e": "Kunststof", - "8f": "Babyverzorging" + "8f": "Babyverzorging", + "82": "Auto", + "8a": "Normal", + "a7": "Heavy", + "a8": "Express", + "8c": "Extra Silence", + "88": "Self Clean" } }, "dispense_type": { diff --git a/tests/test_translations.py b/tests/test_translations.py index 9e4b79c..772546e 100644 --- a/tests/test_translations.py +++ b/tests/test_translations.py @@ -152,6 +152,20 @@ def test_confirmed_korean_table_02_washer_course_names(): } +def test_confirmed_dishwasher_course_names(): + states = _load('en')['entity']['select']['dishwasher_cycle']['state'] + assert {code: states[code] for code in ( + '82', '8a', 'a7', 'a8', '8c', '88', + )} == { + '82': 'Auto', + '8a': 'Normal', + 'a7': 'Heavy', + 'a8': 'Express', + '8c': 'Extra Silence', + '88': 'Self Clean', + } + + # The hood fan is its device's primary feature: fan.py sets _attr_name = None # so it presents as the device itself, and never reads a catalog name. Same # for the ARTIK051 air-purifier's airflow_fan (issue #56) -- ordered speed