Skip to content
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

Use id(opentherm) to refer to custom component in example YAML #33

Merged
merged 1 commit into from
Oct 29, 2022

Conversation

gmta
Copy link
Contributor

@gmta gmta commented Jul 29, 2022

Usage of id() for custom components is also referenced here:
https://esphome.io/custom/custom_component.html

The firmware would crash for me if I directly referenced opentherm, since the switch would get initialized earlier than the custom component causing a nullptr dereference.

Usage of `id()` for custom components is also referenced here:
https://esphome.io/custom/custom_component.html

The firmware would crash for me if I directly referenced `opentherm`,
since the `switch` would get initialized earlier than the custom
component causing a `nullptr` dereference.
@rsciriano rsciriano merged commit 32f98ee into rsciriano:main Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants