Selaa lähdekoodia

feat (moebot_s_mower): only show new entity if available

Since this is a new feature added by a firmware update, avoid confusing users by showing it when it is not available.

PR #3659
Jason Rumney 6 kuukautta sitten
vanhempi
commit
3df4825a0e
1 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  1. 10 1
      custom_components/tuya_local/devices/moebot_s_mower.yaml

+ 10 - 1
custom_components/tuya_local/devices/moebot_s_mower.yaml

@@ -307,9 +307,10 @@ entities:
         name: switch
         optional: true
   - entity: switch
-    name: Backward Blade Stop
+    name: Backward blade stop
     icon: "mdi:saw-blade"
     category: config
+    hidden: unavailable
     dps:
       - id: 121
         type: integer
@@ -320,3 +321,11 @@ entities:
             value: false
           - dps_val: 1
             value: true
+      - id: 121
+        type: integer
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true