Closed kvj closed 1 year ago
This question can be better asked on discord.
Right, issues with custom or external components aren't for github unless it's caused by an actual bug in esphome.
Right, issues with custom or external components aren't for github unless it's caused by an actual bug in esphome.
Hard to say :)
Could be a bug in esphome, could be a bug in internal rtttl
component
The problem
I'm working on a custom component, and I'm getting error while using
rtttl
component as a dependency. All other components I'm using do not cause any compilation errors.Details:
I declare schema as follows:
then I'm able to get the reference via
but when I'm trying to declare a field or make a method in the c++ code like
I'm getting the compile error
I'm declaring a bunch of other references e.g. display, switches and everything works as expected. I've checked generated
main.cpp
andesphome.h
files they look okay,rtttl.h
is included (as the necessary component is in yaml). The yaml looks like this:I've ruled out most obvious reasons why the namespace isn't visible, and I'm running out of ideas. And yes, I've tried to remove
.esphome/
folder and re-compile the projectWhich version of ESPHome has the issue?
2023.9.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
Not relevant
What platform are you using?
ESP32
Board
esp32dev / Sonoff NSPanel
Component causing the issue
rtttl
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response