Skip to content

Commit

Permalink
Prevent 1 more func call
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Feb 24, 2018
1 parent ce31b74 commit 72053f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/light/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def preprocess_turn_on_alternatives(params):
except ValueError:
_LOGGER.warning('Got unknown color %s, falling back to white',
color_name)
params[ATTR_RGB_COLOR] = color_util.color_name_to_rgb('white')
params[ATTR_RGB_COLOR] = (255, 255, 255)

kelvin = params.pop(ATTR_KELVIN, None)
if kelvin is not None:
Expand Down

0 comments on commit 72053f6

Please sign in to comment.