v1.15.1: Fix HIDDEN_SWITCHES override
Bug Fix
TO-CONFIG-CHLAZENI now appears correctly as a switch
Problem: The descriptor parser was incorrectly creating a sensor for \TO-CONFIG-CHLAZENI\ from a <row prop='...'>\ element that has no actual control child. The HIDDEN_SWITCHES entry was being skipped because the key already existed.
Result: \TO-CONFIG-CHLAZENI\ appeared as \sensor.requested_heating_water_temperature\ instead of \switch.heating_circuit_cooling_mode_configuration.
Fix: HIDDEN_SWITCHES entries now override any existing descriptor entry instead of skipping if already present.
Changes
- \coordinator.py: Changed HIDDEN_SWITCHES injection to always override (not skip)
- Added debug logging to show when overrides happen
- Log message now shows override count
Expected Log Output
After this fix you should see:
\
HIDDEN_SWITCHES overriding descriptor entry for TO-CONFIG-CHLAZENI: sensor -> switch
Loaded ... (31 injected from STATUS_XML_DESCRIPTOR, 1 from HIDDEN_SWITCHES, 1 overrides)
\\
And the entity should appear as \switch.xcc_to_config_chlazeni\ (or similar) instead of \sensor.xcc_to_config_chlazeni.