Explorar o código

Lucking alarm: mark more dps as optional

Only dp ids 30 and 34 are present in the log message.  Mark everything except
them as optional.

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

+ 2 - 1
custom_components/tuya_local/devices/lucking_hs6_lock.yaml

@@ -145,6 +145,7 @@ secondary_entities:
       - id: 31
         type: integer
         name: value
+        optional: true
         unit: s
         range:
           min: 0
@@ -157,7 +158,6 @@ secondary_entities:
       - id: 34
         type: integer
         name: value
-        optional: true
         unit: s
         range:
           min: 0
@@ -195,6 +195,7 @@ secondary_entities:
       - id: 103
         type: string
         name: doorbell_song_kit
+        optional: true
   - entity: binary_sensor
     name: Doorbell
     class: sound