4
0
Эх сурвалжийг харах

Casdon TD Pro 2: fix translation key

Jianyun 1 жил өмнө
parent
commit
57520383c9

+ 23 - 23
custom_components/tuya_local/devices/casdon_td_pro_2.yaml

@@ -31,51 +31,51 @@ primary_entity:
       type: string
       mapping:
         - dps_val: "1"
-          value: Healthy Steam
+          value: healthy_steam
         - dps_val: "2"
-          value: Fresh Steam
+          value: fresh_steam
         - dps_val: "3"
-          value: High Temp Steam
+          value: high_temp_steam
         - dps_val: "4"
-          value: Stew
+          value: stew
         - dps_val: "5"
-          value: Bake up and down
+          value: bake_up_and_down
         - dps_val: "6"
-          value: BBQ
+          value: bbq
         - dps_val: "7"
-          value: Bottom Hot Air
+          value: bottom_hot_air
         - dps_val: "8"
-          value: On Strong Roast
+          value: on_strong_roast
         - dps_val: "9"
-          value: 3D Hot Air
+          value: 3d_hot_air
         - dps_val: "10"
-          value: Air Fry
+          value: air_fry
         - dps_val: "11"
-          value: Steam Frying
+          value: steam_frying
         - dps_val: "12"
-          value: One-click Bread
+          value: one_click_bread
         - dps_val: "13"
-          value: Quick Heat
+          value: quick_heat
         - dps_val: "14"
-          value: Keep Warm
+          value: keep_warm
         - dps_val: "15"
-          value: Unfreeze
+          value: unfreeze
         - dps_val: "16"
-          value: Fermentation
+          value: fermentation
         - dps_val: "17"
-          value: Descale
+          value: descale
         - dps_val: "18"
-          value: Local Recipes
+          value: local_recipes
         - dps_val: "19"
-          value: Drying
+          value: drying
         - dps_val: "20"
-          value: Custom
+          value: custom
         - dps_val: "21"
-          value: Low Steaming
+          value: low_steaming
         - dps_val: "22"
-          value: Medium Steaming
+          value: medium_steaming
         - dps_val: "23"
-          value: High Steaming
+          value: high_steaming
     - id: 102
       type: string
       name: hvac_action

+ 23 - 23
custom_components/tuya_local/translations/en.json

@@ -236,29 +236,29 @@
                 "state_attributes": {
                     "preset_mode": {
                         "state": {
-                            "Healthy Steam": "Healthy Steam",
-                            "Fresh Steam": "Fresh Steam",
-                            "High Temp Steam": "High Temp Steam",
-                            "Stew": "Stew",
-                            "Bake up and down": "Bake up and down",
-                            "BBQ": "BBQ",
-                            "Bottom Hot Air": "Bottom Hot Air",
-                            "On Strong Roast": "On Strong Roast",
-                            "3D Hot Air": "3D Hot Air",
-                            "Air Fry": "Air Fry",
-                            "Steam Frying": "Steam Frying",
-                            "One-click Bread": "One-click Bread",
-                            "Quick Heat": "Quick Heat",
-                            "Keep Warm": "Keep Warm",
-                            "Unfreeze": "Unfreeze",
-                            "Fermentation": "Fermentation",
-                            "Descale": "Descale",
-                            "Local Recipes": "Local Recipes",
-                            "Drying": "Drying",
-                            "Custom": "Custom",
-                            "Low Steaming": "Low Steaming",
-                            "Medium Steaming": "Medium Steaming",
-                            "High Steaming": "High Steaming"
+                            "healthy_steam": "Healthy Steam",
+                            "fresh_steam": "Fresh Steam",
+                            "high_temp_steam": "High Temp Steam",
+                            "stew": "Stew",
+                            "bake_up_and_down": "Bake up and down",
+                            "bbq": "BBQ",
+                            "bottom_hot_air": "Bottom Hot Air",
+                            "on_strong_roast": "On Strong Roast",
+                            "3d_hot_air": "3D Hot Air",
+                            "air_fry": "Air Fry",
+                            "steam_frying": "Steam Frying",
+                            "one_click_bread": "One-click Bread",
+                            "quick_heat": "Quick Heat",
+                            "keep_warm": "Keep Warm",
+                            "unfreeze": "Unfreeze",
+                            "fermentation": "Fermentation",
+                            "descale": "Descale",
+                            "local_recipes": "Local Recipes",
+                            "drying": "Drying",
+                            "custom": "Custom",
+                            "low_steaming": "Low Steaming",
+                            "medium_steaming": "Medium Steaming",
+                            "high_steaming": "High Steaming"
                         }
                     }
                 }

+ 24 - 24
custom_components/tuya_local/translations/zh-Hans.json

@@ -236,29 +236,29 @@
                 "state_attributes": {
                     "preset_mode": {
                         "state": {
-                            "Healthy Steam": "健康蒸",
-                            "Fresh Steam": "鲜嫩蒸",
-                            "High Temp Steam": "高温蒸",
-                            "Stew": "养生炖",
-                            "Bake up and down": "上下烤",
-                            "BBQ": "立体烧烤",
-                            "Bottom Hot Air": "底部热风",
-                            "On Strong Roast": "上强烤",
-                            "3D Hot Air": "3D热风",
-                            "Air Fry": "空气炸",
-                            "Steam Frying": "蒸汽炸",
-                            "One-click Bread": "一键面包",
-                            "Quick Heat": "速热",
-                            "Keep Warm": "保温",
-                            "Unfreeze": "解冻",
-                            "Fermentation": "发酵",
-                            "Descale": "除垢",
-                            "Local Recipes": "菜谱模式",
-                            "Drying": "内腔烘干",
-                            "Custom": "自定义模式",
-                            "Low Steaming": "低湿蒸烤",
-                            "Medium Steaming": "中湿蒸烤",
-                            "High Steaming": "高湿蒸烤"
+                            "healthy_steam": "健康蒸",
+                            "fresh_steam": "鲜嫩蒸",
+                            "high_temp_steam": "高温蒸",
+                            "stew": "养生炖",
+                            "bake_up_and_down": "上下烤",
+                            "bbq": "立体烧烤",
+                            "bottom_hot_air": "底部热风",
+                            "on_strong_roast": "上强烤",
+                            "3d_hot_air": "3D热风",
+                            "air_fry": "空气炸",
+                            "steam_frying": "蒸汽炸",
+                            "one_click_bread": "一键面包",
+                            "quick_heat": "速热",
+                            "keep_warm": "保温",
+                            "unfreeze": "解冻",
+                            "fermentation": "发酵",
+                            "descale": "除垢",
+                            "local_recipes": "菜谱模式",
+                            "drying": "内腔烘干",
+                            "custom": "自定义模式",
+                            "low_steaming": "低湿蒸烤",
+                            "medium_steaming": "中湿蒸烤",
+                            "high_steaming": "高湿蒸烤"
                         }
                     }
                 }
@@ -362,7 +362,7 @@
                 "name": "剩余时间"
             },
             "cooking_status": {
-                "name" : "烹饪状态",
+                "name": "烹饪状态",
                 "state": {
                     "wait": "烹饪等待",
                     "reservation": "预约中",