Przeglądaj źródła

Indicator lights: correct some cases where class was used

- should be translation_key, lights don't support classes

Noticed PR #2880 has copied it from somewhere, and found 3 occurrences.
Jason Rumney 1 rok temu
rodzic
commit
626623ba3e

+ 1 - 1
custom_components/tuya_local/devices/cleverio_ap100_purifier.yaml

@@ -26,7 +26,7 @@ entities:
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"
   - entity: light
   - entity: light
-    class: indicator
+    translation_key: indicator
     dps:
     dps:
       - id: 8
       - id: 8
         type: boolean
         type: boolean

+ 1 - 1
custom_components/tuya_local/devices/petoneer_frescomini_petfountain.yaml

@@ -11,7 +11,7 @@ entities:
         type: boolean
         type: boolean
         name: switch
         name: switch
   - entity: light
   - entity: light
-    class: indicator
+    translation_key: indicator
     category: config
     category: config
     dps:
     dps:
       - id: 102
       - id: 102

+ 1 - 1
custom_components/tuya_local/devices/ts106_alarm.yaml

@@ -113,7 +113,7 @@ entities:
           - dps_val: H
           - dps_val: H
             value: 1.0
             value: 1.0
   - entity: light
   - entity: light
-    class: indicator
+    translation_key: indicator
     category: config
     category: config
     dps:
     dps:
       - id: 122
       - id: 122