4
0
Эх сурвалжийг харах

feat(dual_dimmable_lamp): fix products section, remove scales

- light brightness is self scaling, so leave the scales out of the config.

PR #3668
Jason Rumney 6 сар өмнө
parent
commit
ee266b436d

+ 2 - 6
custom_components/tuya_local/devices/dual_dimmable_lamp.yaml

@@ -1,7 +1,7 @@
-name: Dual Dimmable Lamp
+name: Dual dimmable lamp
 products:
 products:
   - id: t1o91dvgdb9xclnm
   - id: t1o91dvgdb9xclnm
-    name: Dream of You Dual Lamp
+    model: Dream of You Dual Lamp
 entities:
 entities:
   - entity: light
   - entity: light
     name: Filament
     name: Filament
@@ -15,8 +15,6 @@ entities:
         range:
         range:
           min: 10
           min: 10
           max: 1000
           max: 1000
-        mapping:
-          - scale: 0.255
   - entity: light
   - entity: light
     name: Base
     name: Base
     dps:
     dps:
@@ -29,5 +27,3 @@ entities:
         range:
         range:
           min: 10
           min: 10
           max: 1000
           max: 1000
-        mapping:
-          - scale: 0.255