Map main_heating_controls on full-SAP certs for the FE panel 🟥

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-06-25 21:38:06 +00:00
parent 95701d03e4
commit 0440de4965

View file

@ -164,6 +164,17 @@ class TestFromSapSchema17_1DisplayElements:
assert result.hot_water is not None
assert result.hot_water.description == "From main system"
def test_maps_main_heating_controls_display_element(
self, result: EpcPropertyData
) -> None:
# "Heating Control" panel row. Full-SAP lodges it as a list; mirror the
# 21.0.1 mapper and take the first control system.
assert result.main_heating_controls is not None
assert (
result.main_heating_controls.description
== "Time and temperature zone control"
)
class TestFullSapHasHotWaterCylinderFallback:
"""Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)