Add color temp and brightness config to light
This commit is contained in:
committed by
rospogrigio
parent
8456c6039c
commit
792fcc5186
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user