Skip to content

Commit

Permalink
color_mode 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-SRG authored Jun 13, 2022
1 parent 034b991 commit fb7c83a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xiaomi_light.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ class XiaomiLight : public Component, public LightOutput {
}
LightTraits get_traits() override {
auto traits = light::LightTraits();
traits.set_supports_brightness(true);
traits.set_supports_rgb(false);
traits.set_supports_rgb_white_value(false);
traits.set_supports_color_temperature(true);
traits.set_supported_color_modes({light::ColorMode::BRIGHTNESS, light::ColorMode::COLOR_TEMPERATURE});
traits.set_min_mireds(this->color_temperature_cw_);
traits.set_max_mireds(this->color_temperature_ww_);
return traits;
Expand Down

0 comments on commit fb7c83a

Please sign in to comment.