Merge pull request #619 from nkgilley/mqtt-light-color-fix

Remove rgb color if it's not an rgb bulb.
pull/621/head
Paulus Schoutsen 2015-11-14 00:51:18 -08:00
commit bc48e4f98e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
config.get('brightness_command_topic'),
"rgb_state_topic": config.get('rgb_state_topic'),
"rgb_command_topic": config.get('rgb_command_topic')},
config.get('rgb', [255, 255, 255]),
config.get('rgb', None),
config.get('qos', DEFAULT_QOS),
{"on": config.get('payload_on', DEFAULT_PAYLOAD_ON),
"off": config.get('payload_off', DEFAULT_PAYLOAD_OFF)},