Add color temp and brightness config to light

This commit is contained in:
Pierre Ståhl
2020-09-23 22:17:13 +02:00
committed by rospogrigio
parent 8456c6039c
commit 792fcc5186
3 changed files with 29 additions and 13 deletions

View File

@@ -260,6 +260,14 @@ class LocalTuyaEntity(Entity):
return value
def dps_conf(self, conf_item):
"""Return value of datapoint for user speified config item.
This method looks up which DP a certain config item uses based on
user configuration and returns its value.
"""
return self.dps(self._config.get(conf_item))
def status_updated(self):
"""Device status was updated.