mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Color mode implementation (#2012)
This commit is contained in:
@@ -208,8 +208,7 @@ class FastLEDLightOutput : public light::AddressableLight {
|
||||
// (In most use cases you won't need these)
|
||||
light::LightTraits get_traits() override {
|
||||
auto traits = light::LightTraits();
|
||||
traits.set_supports_brightness(true);
|
||||
traits.set_supports_rgb(true);
|
||||
traits.set_supported_color_modes({light::ColorMode::RGB});
|
||||
return traits;
|
||||
}
|
||||
void setup() override;
|
||||
|
||||
Reference in New Issue
Block a user