Просмотр исходного кода

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 год назад
Родитель
Сommit
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