Skip to content

Commit

Permalink
ha: color_mode flag is deprecated (#2634)
Browse files Browse the repository at this point in the history
Deprecated flag `color_mode` used in MQTT JSON light config , the `color_mode` flag is not used anymore and should be removed.
...
This will stop working in Home Assistant Core 2025.3
  • Loading branch information
luebbe authored Jan 24, 2025
1 parent 0934262 commit 97db8fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion code/espurna/homeassistant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ class LightDiscovery : public Discovery {
// 'rgbww' - we receive and map 'c' to our 'cold' and 'w' to our 'warm'
// 'cw' / 'ww' without 'rgb' are not supported; see 'brightness' or 'color_temp'
json["brightness"] = true;
json["color_mode"] = true;
JsonArray& modes = json.createNestedArray("supported_color_modes");

if (lightHasColor()) {
Expand Down

0 comments on commit 97db8fc

Please sign in to comment.