diff --git a/custom_components/localtuya/__init__.py b/custom_components/localtuya/__init__.py index 306b468..17ea4bb 100644 --- a/custom_components/localtuya/__init__.py +++ b/custom_components/localtuya/__init__.py @@ -33,6 +33,8 @@ localtuya: - platform: light friendly_name: Device Light id: 4 + brightness: 20 + color_temp: 21 - platform: sensor friendly_name: Plug Voltage diff --git a/custom_components/localtuya/common.py b/custom_components/localtuya/common.py index de205b2..8e85fae 100644 --- a/custom_components/localtuya/common.py +++ b/custom_components/localtuya/common.py @@ -261,7 +261,7 @@ class LocalTuyaEntity(Entity): return value 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 user configuration and returns its value.