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

BSTUOKEY invisible lock: don't persist unlock records or alert

We need unlock records to revert to null to avoid shadowing later values.
Alert also needs to revert to null to indicate the OK state.

Issue #2111
Jason Rumney 1 год назад
Родитель
Сommit
e4382abe51
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      custom_components/tuya_local/devices/bstuokey_invisible_lock.yaml

+ 4 - 0
custom_components/tuya_local/devices/bstuokey_invisible_lock.yaml

@@ -20,14 +20,17 @@ primary_entity:
     - id: 15
       type: integer
       optional: true
+      persist: false
       name: unlock_card
     - id: 19
       type: integer
       optional: true
+      persist: false
       name: unlock_ble
     - id: 21
       type: string
       optional: true
+      persist: false
       name: jammed
       mapping:
         - dps_val: tongue_bad
@@ -77,6 +80,7 @@ secondary_entities:
       - id: 21
         type: string
         optional: true
+        persist: false
         name: sensor
         mapping:
           - dps_val: null