Procházet zdrojové kódy

fix (pir_spotlight): do not force dps

The "force" mechanism generally only works on the
power/voltage/current sensors of smart plugs, and can cause issues for
devices that do not support it. As these are all config options, it is
not really needed here, and may have a side-effect of causing the
light to come on in auto mode.

Issue #4543
Jason Rumney před 6 dny
rodič
revize
b00bc56a09

+ 0 - 7
custom_components/tuya_local/devices/pir_spotlight.yaml

@@ -59,7 +59,6 @@ entities:
           - dps_val: manual
           - dps_val: manual
             value: true
             value: true
         optional: true
         optional: true
-        force: true
   - entity: switch
   - entity: switch
     name: PIR enabled
     name: PIR enabled
     category: config
     category: config
@@ -68,7 +67,6 @@ entities:
         type: boolean
         type: boolean
         name: switch
         name: switch
         optional: true
         optional: true
-        force: true
   - entity: event
   - entity: event
     class: motion
     class: motion
     dps:
     dps:
@@ -88,7 +86,6 @@ entities:
         type: string
         type: string
         name: option
         name: option
         optional: true
         optional: true
-        force: true
         mapping:
         mapping:
           - dps_val: "high"
           - dps_val: "high"
             value: high
             value: high
@@ -109,7 +106,6 @@ entities:
           max: 3600
           max: 3600
         unit: s
         unit: s
         optional: true
         optional: true
-        force: true
   - entity: number
   - entity: number
     name: Standby delay
     name: Standby delay
     category: config
     category: config
@@ -125,7 +121,6 @@ entities:
           - scale: 1
           - scale: 1
           - dps_val: null
           - dps_val: null
         optional: true
         optional: true
-        force: true
   - entity: number
   - entity: number
     name: Standby bright
     name: Standby bright
     category: config
     category: config
@@ -141,7 +136,6 @@ entities:
           - scale: 1
           - scale: 1
           - dps_val: null
           - dps_val: null
         optional: true
         optional: true
-        force: true
   - entity: select
   - entity: select
     name: Ambient light sensor
     name: Ambient light sensor
     category: config
     category: config
@@ -165,4 +159,3 @@ entities:
           - dps_val: now
           - dps_val: now
             value: Now
             value: Now
         optional: true
         optional: true
-        force: true