mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-31 02:08:26 +02: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