Closed jclsn closed 2 weeks ago
That should give a nicer validation error instead of crashing. I think the problem is that your switch name is empty and you don't have the friendly name set.
@ssieb Ah yes, thank you! It compiles now
I'll keep this open. That should give a validation error instead of crashing.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The problem
Trying to compile a switch.yaml component
and am getting an error. Had to take the dev version because of https://github.com/esphome/issues/issues/5486 and now this occurs.
Which version of ESPHome has the issue?
esphome-dev
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP8266
Board
No response
Component causing the issue
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response