瀏覽代碼

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