Skip to content

Commit

Permalink
Fixes HomeAssistant deprecation warning:
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 committed Jan 21, 2025
1 parent 00bfa64 commit 1b62df7
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 1b62df7

Please sign in to comment.