Explorar o código

fix (meaco_clean_purifier): rename file with yaml extension

- add yaml extension so the config is actually used
- clean up whitespace highlighted by yamllint once the file is detected as yaml
- make light entity unavailable when in sleep mode, as discussed on PR #4312
Jason Rumney hai 3 meses
pai
achega
e3595bd395

+ 8 - 1
custom_components/tuya_local/devices/meaco_clean_purifier → custom_components/tuya_local/devices/meaco_clean_purifier.yaml

@@ -67,7 +67,7 @@ entities:
     translation_key: time_remaining
     category: diagnostic
     class: duration
-    dps:      
+    dps:
       - id: 19
         name: sensor
         type: integer
@@ -132,3 +132,10 @@ entities:
             value: 128
           - dps_val: Standard
             value: 255
+      - id: 3
+        type: string
+        name: available
+        mapping:
+          - dps_val: sleep
+            value: false
+          - value: true