浏览代码

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 2 月之前
父节点
当前提交
b00bc56a09
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      custom_components/tuya_local/devices/pir_spotlight.yaml

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

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