-
Notifications
You must be signed in to change notification settings - Fork 17
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
Compile fails on ESPHOME 2023.4 #8
Comments
Worked around the issue by removing all the "if" statements containing the 'length' statement. |
Did that as well to be able to upgrade but I'm not quite sure yet why these checks where in place. Obviously they where there for a reason. It's working though. |
It seems that .length isn't supported by string_ref in newer versions (https://esphome.io/api/classesphome_1_1_string_ref.html). Use empty() insteed. Here my code:
|
When compiling using ESPHOME 2023.4, I'm getting the following error (for multiple lines in dietrich.h):
It worked perfectly in previous versions. Maybe that 'length' thingy was dropped and (possibly) replaced in ESPHOME?
The text was updated successfully, but these errors were encountered: