소스 검색

KRain KRX8: use plug rather than power class for mains power

Power is an on/off indication. Plugged/unplugged makes more sense when the device is still on when running on battery.

PR #2948
Jason Rumney 1 년 전
부모
커밋
cf5b623a28
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_components/tuya_local/devices/krain_krx8_irrigation_controller.yaml

+ 1 - 1
custom_components/tuya_local/devices/krain_krx8_irrigation_controller.yaml

@@ -103,7 +103,7 @@ entities:
         name: sensor
         name: sensor
         type: boolean
         type: boolean
   - entity: binary_sensor
   - entity: binary_sensor
-    class: power
+    class: plug
     dps:
     dps:
       - id: 131
       - id: 131
         name: sensor
         name: sensor