From ab23b4088ee73a0b56959ea38e9823b733aeaadd Mon Sep 17 00:00:00 2001 From: sususweet Date: Fri, 10 Oct 2025 20:59:00 +0800 Subject: [PATCH] feat: update translations. --- custom_components/midea_auto_cloud/device_mapping/T0xFD.py | 2 ++ custom_components/midea_auto_cloud/translations/en.json | 4 ++-- custom_components/midea_auto_cloud/translations/zh-Hans.json | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/custom_components/midea_auto_cloud/device_mapping/T0xFD.py b/custom_components/midea_auto_cloud/device_mapping/T0xFD.py index 59a9a2b..6c19f9b 100644 --- a/custom_components/midea_auto_cloud/device_mapping/T0xFD.py +++ b/custom_components/midea_auto_cloud/device_mapping/T0xFD.py @@ -16,9 +16,11 @@ DEVICE_MAPPING = { }, "netIons_on_off": { "device_class": SwitchDeviceClass.SWITCH, + "translation_key": "netions_on_off" }, "airDry_on_off": { "device_class": SwitchDeviceClass.SWITCH, + "translation_key": "airdry_on_off" }, "power": { "device_class": SwitchDeviceClass.SWITCH, diff --git a/custom_components/midea_auto_cloud/translations/en.json b/custom_components/midea_auto_cloud/translations/en.json index fe6fc74..aa621ab 100644 --- a/custom_components/midea_auto_cloud/translations/en.json +++ b/custom_components/midea_auto_cloud/translations/en.json @@ -1681,7 +1681,7 @@ "ai_switch": { "name": "AI Switch" }, - "airDry_on_off": { + "airdry_on_off": { "name": "Air Dry On Off" }, "airswitch": { @@ -1957,7 +1957,7 @@ "middlestair_ispreheat": { "name": "Middle Stair Is Preheat" }, - "netIons_on_off": { + "netions_on_off": { "name": "Net Ions On Off" }, "nightly": { diff --git a/custom_components/midea_auto_cloud/translations/zh-Hans.json b/custom_components/midea_auto_cloud/translations/zh-Hans.json index 0a26452..3093d7f 100644 --- a/custom_components/midea_auto_cloud/translations/zh-Hans.json +++ b/custom_components/midea_auto_cloud/translations/zh-Hans.json @@ -1681,7 +1681,7 @@ "control_status": { "name": "启停" }, - "airDry_on_off": { + "airdry_on_off": { "name": "风干开关" }, "airswitch": { @@ -1957,7 +1957,7 @@ "middlestair_ispreheat": { "name": "中层预热" }, - "netIons_on_off": { + "netions_on_off": { "name": "负离子开关" }, "nightly": {