mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Merge pull request #619 from nkgilley/mqtt-light-color-fix
Remove rgb color if it's not an rgb bulb.
This commit is contained in:
@@ -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)},
|
||||
|
Reference in New Issue
Block a user