Fix styling issues

This commit is contained in:
richard 2015-12-24 21:35:36 -06:00
parent 0dfc1c4e7a
commit 5c7fb5d7ae
2 changed files with 4 additions and 3 deletions

View file

@ -229,7 +229,8 @@ def setup(hass, config):
if dat.get(ATTR_FLASH) in (FLASH_SHORT, FLASH_LONG): if dat.get(ATTR_FLASH) in (FLASH_SHORT, FLASH_LONG):
params[ATTR_FLASH] = dat[ATTR_FLASH] params[ATTR_FLASH] = dat[ATTR_FLASH]
if dat.get(ATTR_EFFECT) in (EFFECT_COLORLOOP, EFFECT_WHITE, EFFECT_RANDOM): if dat.get(ATTR_EFFECT) in (EFFECT_COLORLOOP, EFFECT_WHITE,
EFFECT_RANDOM):
params[ATTR_EFFECT] = dat[ATTR_EFFECT] params[ATTR_EFFECT] = dat[ATTR_EFFECT]
for light in target_lights: for light in target_lights:

View file

@ -235,8 +235,8 @@ class HueLight(Light):
if effect == EFFECT_COLORLOOP: if effect == EFFECT_COLORLOOP:
command['effect'] = 'colorloop' command['effect'] = 'colorloop'
elif effect == EFFECT_RANDOM: elif effect == EFFECT_RANDOM:
command['hue'] = random.randrange(0,65535) command['hue'] = random.randrange(0, 65535)
command['sat'] = random.randrange(150,254) command['sat'] = random.randrange(150, 254)
else: else:
command['effect'] = 'none' command['effect'] = 'none'