[addressable_light] Clear white channel when setting HSV color (#20265)

This commit is contained in:
Jeff Brown
2026-10-10 08:43:33 -10:00
committed by GitHub
parent ea7c277c08
commit a4ef8a6c90
+1 -4
View File
@@ -19,10 +19,7 @@ class ESPColorSettable {
virtual void lighten(uint8_t delta) = 0;
virtual void darken(uint8_t delta) = 0;
void set(const ESPHSVColor &color) { this->set_hsv(color); }
void set_hsv(const ESPHSVColor &color) {
Color rgb = color.to_rgb();
this->set_rgb(rgb.r, rgb.g, rgb.b);
}
void set_hsv(const ESPHSVColor &color) { this->set(color.to_rgb()); }
void set_rgb(uint8_t red, uint8_t green, uint8_t blue) {
this->set_red(red);
this->set_green(green);