소스 검색

Kogan bladeless fan: change time remaining to integer

Sensor with unit min requires an integer to work. Even if the actual data
is an integer in double quotes, integer as a type will still work.

PR #1480 comment:

I don't know why but combining the 2 fans, fan1csa and fansa "broke" the
devices. The became greyed out in Home Assistant. I re-added the seperated
yamls and they both worked again.

This seems to be the only possible blocker to them being detected correctly,
as the config is working as expected in tests.
Jason Rumney 2 년 전
부모
커밋
a2deb86780
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_components/tuya_local/devices/kogan_bladeless_fan.yaml

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

@@ -123,7 +123,7 @@ secondary_entities:
     category: diagnostic
     dps:
       - id: 12
-        type: string
+        type: integer
         optional: true
         name: sensor
         unit: min