Code PAS Hub Bulk LPG and Mains Gas main-fuel labels to SAP codes 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-14 17:17:48 +00:00
parent c489dfcb29
commit 7072499b2e

View file

@ -7112,6 +7112,14 @@ class UnmappedPasHubLabel(ValueError):
# (ADR-0015) rather than being silently mis-billed downstream.
_PASHUB_MAIN_FUEL_TO_SAP10: Dict[str, int] = {
"Mains gas": 26, # matches the Elmhurst mapper's mains-gas code
# The newer PasHub site-note form lodges the fuel under a `Fuel:` label with
# a capitalised value; same fuel, same code as "Mains gas" above (#1558).
"Mains Gas": 26,
# Bulk LPG → Table 32 code 2 (bulk LPG); 27 = epc_codes `main_fuel` "LPG
# (not community)", the same code the Elmhurst map pins for "Bulk LPG"
# (see `_ELMHURST_MAIN_FUEL_TO_SAP10`). Last residual cohort label that
# parse-raised `UnmappedPasHubLabel` (#1558).
"Bulk LPG": 27,
"Electricity": 30, # the standard-electricity fuel code
}