hass-core/homeassistant
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
..
auth_providers Add local auth provider (#14365) 2018-05-10 14:09:22 -04:00
components Fix MQTT Light with RGB and Brightness (#15053) 2018-06-21 14:59:02 -04:00
helpers Update condition.py (#15021) 2018-06-19 13:26:52 +02:00
scripts Do not mount deps folder when running in virtual env (#14993) 2018-06-16 10:48:41 -04:00
util Do not mount deps folder when running in virtual env (#14993) 2018-06-16 10:48:41 -04:00
__init__.py
__main__.py Bring back typing check. Meanwhile just for homeassistant/*.py (#14410) 2018-05-12 17:44:53 -04:00
auth.py Fix hue discovery popping up (#14614) 2018-05-24 14:24:14 -04:00
bootstrap.py Do not mount deps folder when running in virtual env (#14993) 2018-06-16 10:48:41 -04:00
config.py Fix extended package support (#14980) 2018-06-16 06:55:32 -04:00
config_entries.py Update translations 2018-06-17 23:04:52 -04:00
const.py Add support for Homekit battery service (#14288) 2018-06-17 20:54:34 +02:00
core.py Remove inline pylint disables for messages disabled in pylintrc (#14978) 2018-06-16 00:15:46 +02:00
data_entry_flow.py Show notification when user configures Nest client_id/secret (#14970) 2018-06-15 15:19:58 -04:00
exceptions.py Bring back typing check. Meanwhile just for homeassistant/*.py (#14410) 2018-05-12 17:44:53 -04:00
loader.py Bring back typing check. Meanwhile just for homeassistant/*.py (#14410) 2018-05-12 17:44:53 -04:00
monkey_patch.py Python 3.5 adjustments (#13173) 2018-03-15 13:10:54 +02:00
package_constraints.txt Upgrade requests to 2.19.1 (#15019) 2018-06-18 18:13:21 +02:00
remote.py Remove crazy JSON encoding things that are no longer used (#13029) 2018-03-12 23:22:08 +01:00
requirements.py Reinstate our old virtual env check in favor of pip (#12932) 2018-03-05 15:51:37 -08:00
setup.py Bring back typing check. Meanwhile just for homeassistant/*.py (#14410) 2018-05-12 17:44:53 -04:00