Commit Graph
9 Commits
Author SHA1 Message Date
Roy Walker 4012ccaa96 Revert to force linkage. 2026-07-17 13:42:49 -05:00
Roy Walker 74cdb3d56f Bugfix 2026.7.0. 2026-07-17 13:36:06 -05:00
rwalker777 6d84a83236 Force protocol registration at factory initialization to work with ESPHome 2026.7.0
The self-registration mechanism using static initializers can fail with certain compiler/linker settings. Move built-in protocol registration into ensure_initialized() to guarantee all protocols (APC, CyberPower, GoldenMate, Generic) are registered before any protocol lookup occurs.

This fixes the issue where Goldenmate detection fails and there are no fallback protocols registered, resulting in "No suitable protocol found for vendor 0x075D".
2026-07-17 13:18:12 -05:00
rwalker777 039e7d53ad Update protocol_factory.cpp 2026-04-08 16:27:46 -05:00
rwalker777 890e1a013d Disable logging for registered protocol
Comment out logging for registered protocol.
2026-04-08 16:25:37 -05:00
rwalker777 0d2c9b2b54 Disable logging for fallback protocol registration
Commented out logging for registered fallback protocol.
2026-04-08 16:20:56 -05:00
rwalker777 f97093ae7d Add explicit initialization check in ProtocolFactory 2026-04-08 16:12:00 -05:00
rwalker777 e70c936813 Add logger checks before logging in ProtocolFactory 2026-04-08 15:55:01 -05:00
bullshit 7015fd2239 refactor(ups-hid): clean abstraction layers, strategy pattern for protocol selection and proper data structure
Signed-off-by: bullshit <coding@ow-software.pl>
2025-08-23 14:22:02 +02:00