soundstorm / esphome_led_effects

Effects Selection for ESPhome addressable Lights like WS2812 with lambdas
GNU General Public License v3.0
31 stars 8 forks source link

Fix warnings #4

Closed tomrusteze closed 1 year ago

tomrusteze commented 1 year ago

This commit fixes warnings that are given by esphome because of changes to the color structure. See the lightning effect for example:

/config/substitutions/esphome_led_effects/effects/lightning.yaml: In lambda function:
/config/substitutions/esphome_led_effects/effects/lightning.yaml:15:20: warning: 'esphome::COLOR_BLACK' is deprecated: Use Color::BLACK instead of COLOR_BLACK [-Wdeprecated-declarations]
   15 |       it.all() = COLOR_BLACK;
      |                    ^~~~~~~~~~ 
In file included from src/esphome/components/light/addressable_light.h:5,
                 from src/esphome.h:21,
                 from src/main.cpp:3:
src/esphome/core/color.h:177:20: note: declared here
  177 | extern const Color COLOR_BLACK;
      |                    ^~~~~~~~~~~
/config/substitutions/esphome_led_effects/effects/lightning.yaml:24:20: warning: 'esphome::COLOR_BLACK' is deprecated: Use Color::BLACK instead of COLOR_BLACK [-Wdeprecated-declarations]
   24 |       it.all() = COLOR_BLACK;
      |                    ^~~~~~~~~~ 
In file included from src/esphome/components/light/addressable_light.h:5,
                 from src/esphome.h:21,
                 from src/main.cpp:3:
src/esphome/core/color.h:177:20: note: declared here
  177 | extern const Color COLOR_BLACK;
      |                    ^~~~~~~~~~~