Просмотр исходного кода

Summary: fix(holman_wx4_taptimer): use existing translations

Jason Rumney 2 дней назад
Родитель
Сommit
8c334373bf
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      custom_components/tuya_local/devices/holman_wx4_taptimer.yaml

+ 3 - 4
custom_components/tuya_local/devices/holman_wx4_taptimer.yaml

@@ -174,8 +174,7 @@ entities:
         optional: true
         name: value
   - entity: select
-    name: Time format
-    icon: "mdi:clock-digital"
+    translation_key: time_format
     category: config
     dps:
       - id: 114
@@ -184,9 +183,9 @@ entities:
         name: option
         mapping:
           - dps_val: "12"
-            value: "12h"
+            value: "12_hour"
           - dps_val: "24"
-            value: "24h"
+            value: "24_hour"
   - entity: select
     translation_key: temperature_unit
     category: config