Skip to content

Conversation

@mhkrebs
Copy link
Contributor

@mhkrebs mhkrebs commented Jun 24, 2025

Put the switch/button code under USE_SWITCH/USE_BUTTON in case the YAML config doesn't have a "switch:"/"button:" section. Move the pin write into the YAML config because my board doesn't have that pin.

I mentioned it in PR #5 also, but I kept the #ifdef conditionals in there since the sensors are already conditional. But I'm not married to that if you want to require "switch:" and "button:".

Put the switch/button code under `USE_SWITCH`/`USE_BUTTON` in case the YAML config doesn't have a
"switch:"/"button:" section.  Move the pin write into the YAML config because my board doesn't have
the pin.
Copy link
Owner

@htumanyan htumanyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged into the branch and will merge into the main along with other changes in this branch.

@htumanyan htumanyan merged commit b149fba into htumanyan:refactor_separate_proto Jun 24, 2025
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.

2 participants