Ver código fonte

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 2 anos atrás
pai
commit
c19ad0ec07

+ 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