New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: 'BLACK' is not a member of 'esphome::Color' #2068
Comments
color source |
Looks like those constants here got accidentally removed in the linked PR. CC @SenexCrenshaw |
When will it be fixed for everyone? |
Not at a place I can test but should https://github.com/esphome/esphome/blob/master/esphome/core/color.h#L148 Validation in the dashboard wont catch lambda code errors. That will come out at compile time. |
@SenexCrenshaw Currently the symbol is If these two lines are re-added in the new |
@OttoWinter Good catch. Please use |
@OttoWinter thanks for the comment. now instead of |
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Hass.io
ESP (ESP32/ESP8266, Board/Sonoff):
ESP32-s
ESPHome version (latest production, beta, dev branch)
version: 1.18.0
Affected component:
light > effects > addressable_lambda
Description of problem:
Few days before I updated (version: 1.18.0 ) esphome in home Assistant,
when I try to add some effects for my LED, I came across this problem. "error: 'BLACK' is not a member of 'esphome::Color' "
when I try to upload the code to the board. it is showing some ERROR
when I VALIDATE the code it cont find any problem. but in my other device, it is running in the same code but it was uploaded months before (in the old version)
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried:
Compiling & Uploading:
I got the light effect in ESPhome website only https://esphome.io/components/light/index.html
I'm not an expert just follow the steps. if I made any mistakes I'm sorry for that. thank you for helping.
The text was updated successfully, but these errors were encountered: