Skip to content

Fix compile errors in Genvex ESPHome 2026.1#52

Open
Jogge wants to merge 5 commits into
heinekmadsen:mainfrom
Jogge:patch-4
Open

Fix compile errors in Genvex ESPHome 2026.1#52
Jogge wants to merge 5 commits into
heinekmadsen:mainfrom
Jogge:patch-4

Conversation

@Jogge
Copy link
Copy Markdown
Contributor

@Jogge Jogge commented Nov 27, 2025

This fixes #51.

Since I don’t know C++, I relied heavily on GitHub Copilot for the implementation.
I would really appreciate a detailed review to confirm that the solution is implemented correctly.

Currently I'm running this code (and other patches, #48, #49, #50) from here: https://github.com/Jogge/esphome_components/tree/patches

@Jogge
Copy link
Copy Markdown
Contributor Author

Jogge commented Dec 17, 2025

I'm currently running ESPHome 2025.12.0 with all my patches (#52, #50, #49 & #48), from this repo and branch: https://github.com/Jogge/esphome_components/tree/patches

I haven't seen any problems.

Jogge added 2 commits January 21, 2026 08:38
…Ref return type

- Adapted to ESPHome API change: get_custom_fan_mode() now returns StringRef instead of const char*
- Ensured compatibility with ESPHome 2026.1 and future releases
- Use StringRef::empty() and .c_str() instead of pointer/optional logic
- Resolves compile error with new ESPHome API
@Jogge
Copy link
Copy Markdown
Contributor Author

Jogge commented Jan 21, 2026

I have updated the code, and fixed compile error in ESPHome 2026.1.

Again, I'm running all my patches from this repo/branch: https://github.com/Jogge/esphome_components/tree/patches

@Jogge Jogge changed the title Fix compile errors in Genvex ESPHome 2025.11.1 Fix compile errors in Genvex ESPHome 2026.1 Jan 21, 2026
@heinekmadsen
Copy link
Copy Markdown
Owner

@Jogge
Thanks for your fixes. I seems like all components compile just fine in develop branch. I plan to merge develop into main later today.

In the future, your are very welcome to contribute your fixes and improvement to the develop branch

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.

Genvex ESPHome 2025.11.1: Compile errors

2 participants