Add brightness and color_temp to example

This commit is contained in:
Pierre Ståhl
2020-10-05 20:06:20 +02:00
committed by rospogrigio
parent 1da5c2c2e1
commit f5146ad4eb
2 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ localtuya:
- platform: light - platform: light
friendly_name: Device Light friendly_name: Device Light
id: 4 id: 4
brightness: 20
color_temp: 21
- platform: sensor - platform: sensor
friendly_name: Plug Voltage friendly_name: Plug Voltage

View File

@@ -261,7 +261,7 @@ class LocalTuyaEntity(Entity):
return value return value
def dps_conf(self, conf_item): def dps_conf(self, conf_item):
"""Return value of datapoint for user speified config item. """Return value of datapoint for user specified config item.
This method looks up which DP a certain config item uses based on This method looks up which DP a certain config item uses based on
user configuration and returns its value. user configuration and returns its value.