core/tests/components/light
Bob Clough bfc55137ea Fix MQTT Light with RGB and Brightness (#15053)
* Fix MQTT Light with RGB and Brightness

When an MQTT light is given an RGB and Brightness topic, the RGB
is scaled by the brightness *as well* as the brightness being set

This causes 255,0,0 at 50% brightness to be sent as 127,0,0 at 50%
brightness, which ends up as 63,0,0 after the RGB bulb has applied
its brightness scaling.

Fixes the same issue in mqtt, mqtt-json and mqtt-template.

Related Issue: #13725

* Add comment to mqtt_json as well
2018-06-21 14:59:02 -04:00
..
__init__.py
test_deconz.py Deconz make groups configurable (#14704) 2018-06-15 14:31:22 -04:00
test_demo.py Fix too green color conversion (#13828) 2018-04-11 20:58:57 -04:00
test_group.py Use hue/sat as internal light color interface (#11288) 2018-03-18 15:00:29 -07:00
test_hue.py Fix Hue color state for missing xy (#14230) 2018-05-02 09:25:08 -04:00
test_init.py Custom component loading cleanup (#14211) 2018-05-01 20:57:30 +02:00
test_litejet.py
test_mochad.py
test_mqtt.py Fix MQTT Light with RGB and Brightness (#15053) 2018-06-21 14:59:02 -04:00
test_mqtt_json.py Fix MQTT Light with RGB and Brightness (#15053) 2018-06-21 14:59:02 -04:00
test_mqtt_template.py Optimistic MQTT light (#14401) 2018-05-15 12:25:50 +02:00
test_rflink.py
test_rfxtrx.py
test_template.py Remove extra quotes from docstrings (#14431) 2018-05-13 11:06:15 +02:00
test_tradfri.py Patch save_json (#15046) 2018-06-18 21:34:36 -04:00
test_zwave.py Use hue/sat as internal light color interface (#11288) 2018-03-18 15:00:29 -07:00