mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
On-gas-street electric dwelling (API fuel code 29) is offered HHRSH 🟩
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5d99956133
commit
9835b7115c
1 changed files with 7 additions and 6 deletions
|
|
@ -714,14 +714,15 @@ def _hhr_storage_option(
|
|||
|
||||
|
||||
def _hhr_storage_eligible(epc: EpcPropertyData) -> bool:
|
||||
"""HHR storage suits an electrically-heated or off-gas dwelling, unless it is
|
||||
already HHR or a heat pump (translated from legacy `HeatingRecommender.
|
||||
is_high_heat_retention_valid`, which keyed on description strings)."""
|
||||
"""HHR storage suits a non-gas-fuel dwelling, unless it is already HHR or a
|
||||
heat pump. Eligibility keys on the heating *fuel* (main_fuel_type not in
|
||||
_GAS_FUEL_CODES), not the gas-connection flag — a dwelling on a gas street
|
||||
with electric or oil heating has gas_connection_available=True but still
|
||||
qualifies."""
|
||||
main: MainHeatingDetail = epc.sap_heating.main_heating_details[0]
|
||||
if main.sap_main_heating_code == _HHR_STORAGE_SAP_CODE:
|
||||
return False
|
||||
if main.main_heating_category == _HEAT_PUMP_CATEGORY:
|
||||
return False
|
||||
off_gas: bool = not epc.sap_energy_source.mains_gas
|
||||
electric_main: bool = main.main_fuel_type == _ELECTRICITY_FUEL
|
||||
return electric_main or off_gas
|
||||
non_gas_fuel: bool = main.main_fuel_type not in _GAS_FUEL_CODES
|
||||
return non_gas_fuel
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue