소스 검색

Light sensor: updates from review

- remove the product id without name (possibly a device id anyway from the format)
- remove explicit name overriding illuminance translations
- add an icon for the textual light level

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

+ 1 - 4
custom_components/tuya_local/devices/light_sensor.yaml

@@ -1,10 +1,6 @@
 name: Light sensor
-products:
-  - id: p1632039035856duknw4
-  
 primary_entity:
   entity: sensor
-  name: Brightness
   class: illuminance
   dps:
     - id: 7
@@ -16,6 +12,7 @@ secondary_entities:
   - entity: sensor
     name: Light level
     class: enum
+    icon: "mdi:brightness-4"
     category: diagnostic
     dps:
       - id: 6