Fix build with ESPHome 2026.10 (RemoteProtocol no longer virtual) #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/esphome-2026.10-remote-protocol"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Since ESPHome 2026.10 the build fails with
marked 'override', but does not overrideforencode/decode/dumpinWeatherStationProtocolandWeatherStationHidekiProtocol.Cause
In 2026.10
remote_base::RemoteProtocol<T>lost its pure virtualencode/decode/dump. Protocols are now used only through their concrete type and checked with the C++20 conceptsRemoteProtocolDecoder/RemoteProtocolDumper/RemoteProtocolEncoder, so unused protocols can be linked out.Fix
Remove
overridefrom the six declarations.weatherstation.cppand__init__.pyneed no changes (theremote_base.register_*helpers handle the new listener/dumper slot counting).Tested
Syntax check (
g++ -std=gnu++20 -fsyntax-only, USE_HOST) that instantiates Trigger, Dumper, BinarySensor, Action andtransmit<>for a generic protocol and for Hideki:🤖 Generated with Claude Code
https://claude.ai/code/session_01Vh6imgB4QZArJGQjgHihx9