Skip to content

Commit

Permalink
Remove "color_mode" flag in discovery message
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Apr 4, 2024
1 parent 1d55147 commit f152529
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions h801-mqtt-json.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// #define MQTT_MAX_PACKET_SIZE 128 --> #define MQTT_MAX_PACKET_SIZE 800

#define MQTT_MAX_PACKET_SIZE 800
#define FIRMWARE_VERSION "2.0.1"
#define FIRMWARE_VERSION "2.0.2"
#define MANUFACTURER "Huacanxing"

#include <string>
Expand Down Expand Up @@ -408,7 +408,6 @@ void publishJsonDiscovery_entity(const char type[], const char type_topic[], boo
JsonArray sup_col_modes;
if(sup_color_temp | sup_rgb) {
sup_col_modes = root.createNestedArray("supported_color_modes");
root["color_mode"] = true;
}
if(sup_color_temp) {
sup_col_modes.add("color_temp");
Expand Down

0 comments on commit f152529

Please sign in to comment.