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

fix (locks): use correct sensor dp name, and mark sensors hidden.

The advanced use offline password detection sensors should be marked
hidden, as they are just cryptic noise to normal users.
Jason Rumney 3 месяцев назад
Родитель
Сommit
fa22b3a8c5

+ 3 - 3
custom_components/tuya_local/devices/hornbill_y4_smart_lock.yaml

@@ -502,11 +502,11 @@ entities:
       - id: 64
         type: string
         optional: true
-        persist: false
         name: value
   - entity: sensor
     name: Used offline password
     category: diagnostic
+    hidden: true
     dps:
       # [Offline password clear] When a single offline password is cleared
       # locally on the device, the clearing operation record is reported.
@@ -517,12 +517,12 @@ entities:
   - entity: sensor
     name: Cleared offline passwords
     category: diagnostic
+    hidden: true
     dps:
       # [Offline password clear] When all offline passwords are cleared locally
       # on the device, the clearing operation record is reported.
       - id: 66
         type: base64
         optional: true
-        persist: false
         sensitive: true
-        name: value
+        name: sensor

+ 1 - 0
custom_components/tuya_local/devices/orion_dl033ha_lock.yaml

@@ -506,6 +506,7 @@ entities:
     name: Cleared offline passwords
     icon: "mdi:lock-remove"
     category: diagnostic
+    hidden: true
     dps:
       - id: 66
         type: string