Skip to content
Snippets Groups Projects
Commit bd7d9559 authored by jkerdreu's avatar jkerdreu
Browse files

- cleanup

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2989 b32b6428-25c9-4566-ad07-03861ab6144f
parent 9e5a72ff
No related branches found
No related tags found
No related merge requests found
......@@ -72,10 +72,8 @@ class Lamp(XAALEntity, LightEntity):
# duration = kwargs.get('duration',None)
if color_temp:
white_temp = color_util.color_temperature_mired_to_kelvin(
color_temp)
self.send_request('set_white_temperature', {
'white_temperature': white_temp})
white_temp = color_util.color_temperature_mired_to_kelvin(color_temp)
self.send_request('set_white_temperature', {'white_temperature': white_temp})
if brightness:
brightness = int(brightness / 255 * 100)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment