Fix RGB template ordering in MQTT Light (#11362)

* Use different colour channel intensities in tests

Uses a different value for each colour channel in MQTT light tests to
properly differentiate between colour channels.

* Correct ordering of RGB channels in MQTT light
This commit is contained in:
Dan Nixon authored and Martin Hjelmare committed 2017-12-29 15:28:20 +01:00
1 parent cfd78f7b02
commit f07a4684e0
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -424,7 +424,7 @@ class MqttLight(Light):
tpl = self._templates[CONF_RGB_COMMAND_TEMPLATE]
if tpl:
colors = {'red', 'green', 'blue'}
colors = ('red', 'green', 'blue')
variables = {key: val for key, val in
zip(colors, kwargs[ATTR_RGB_COLOR])}
rgb_color_str = tpl.async_render(variables)