Some unused code removed

This commit is contained in:
Shy 2017-03-14 23:28:35 +01:00
parent 7b31061b3b
commit a2692c8f14

View file

@ -218,18 +218,6 @@ class C4Room:
def set_colorscheme(self, colorscheme): def set_colorscheme(self, colorscheme):
"""Apply colorscheme to the LED Cans in this room.""" """Apply colorscheme to the LED Cans in this room."""
cmd = [] cmd = []
# Todo: this stuff would make sense if the Sink Light would be slave
# to a master
#if colorscheme.single_color:
# # Setting only master is more efficient here
# if colorscheme.color_for(self.master):
# self.master.set_color(colorscheme.color_for(self.master))
# cmd.append({
# "topic" : self.master.topic,
# "payload" : self.master.payload
# })
#else:
# Iterate over every light (including master!)
for light in self.lights: for light in self.lights:
if colorscheme.color_for(light.topic): if colorscheme.color_for(light.topic):
light.set_color(colorscheme.color_for(light.topic)) light.set_color(colorscheme.color_for(light.topic))