Skip to content

Commit

Permalink
Update module.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkonovich committed Apr 7, 2015
1 parent 5165f40 commit 9880f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/modules/hue/module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ def process_command(command)

def light_command(lights, options = {})
p options
if lights.class = Hue::Group
if lights.class == Hue::Group
lights.on = options[:on] if !options[:on].nil?
lights.set_state(options[:color]) if !options[:color].nil?
sleep(0.5)
else lights.each do |light|
light.on = options[:on] if !options[:on].nil?
light.set_state(options[:color]) if !options[:color].nil?
sleep(0.5)
sleep(0.5)
end
end
end
Expand Down

0 comments on commit 9880f3e

Please sign in to comment.