소스 검색

BCom camera: add enum class to SD status sensor.

Now that mapped values were added in the previous commit, the sensor needs
to be of class enum to fit HA's expectations.

Issue #2835
Jason Rumney 1 년 전
부모
커밋
f0e5b7a24c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      custom_components/tuya_local/devices/bcom_intercom_camera.yaml

+ 1 - 0
custom_components/tuya_local/devices/bcom_intercom_camera.yaml

@@ -97,6 +97,7 @@ entities:
             value: "On"
   - entity: sensor
     name: SD status
+    class: enum
     category: diagnostic
     dps:
       - id: 110