core/homeassistant/components/mqtt
Jan Bouwhuis 1a4b14c217
Fix MQTT rgb light brightness scaling (#89264)
* Normalize received RGB colors to 100% brightness

* Assert on rgb_color attribute

* Use max for RGB to get brightness

* Avoid division and add clamp

* remove clamp

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-09 08:02:59 +01:00
..
light Fix MQTT rgb light brightness scaling (#89264) 2023-03-09 08:02:59 +01:00
vacuum
__init__.py
abbreviations.py
alarm_control_panel.py Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
binary_sensor.py
button.py
camera.py
client.py Catch exceptions and add logging when writing states on MQTT entities (#89091) 2023-03-06 15:34:47 +01:00
climate.py
config.py
config_flow.py
config_integration.py
const.py
cover.py
debug_info.py
device_automation.py
device_tracker.py
device_trigger.py
diagnostics.py
discovery.py
fan.py
humidifier.py
lock.py
manifest.json
mixins.py
models.py Catch exceptions and add logging when writing states on MQTT entities (#89091) 2023-03-06 15:34:47 +01:00
number.py
scene.py
select.py
sensor.py Allow enum as MQTT sensor device_class (#89391) 2023-03-08 22:35:06 +01:00
services.yaml
siren.py
strings.json
subscription.py
switch.py
tag.py
text.py
trigger.py
update.py
util.py