Explorar o código

Summary: Orion lock: set unlock dps to not persist.

If they persist, then the same one is always picked up as the unlock reason.
They need to not persist so that the latest one is always recognised.

Issue #798
Jason Rumney %!s(int64=2) %!d(string=hai) anos
pai
achega
aa51a3e292
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      custom_components/tuya_local/devices/orion_smart_lock.yaml

+ 10 - 0
custom_components/tuya_local/devices/orion_smart_lock.yaml

@@ -5,18 +5,28 @@ primary_entity:
     - id: 1
       type: integer
       name: unlock_fingerprint
+      optional: true
+      persist: false
     - id: 2
       type: integer
       name: unlock_password
+      optional: true
+      persist: false
     - id: 3
       type: integer
       name: unlock_temp_pwd
+      optional: true
+      persist: false
     - id: 4
       type: integer
       name: unlock_dynamic_pwd
+      optional: true
+      persist: false
     - id: 5
       type: integer
       name: unlock_card
+      optional: true
+      persist: false
     - id: 8
       type: bitfield
       name: jammed