From 1d13dee38e091340ea3647ba9cbd8f167c43e296 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 2 Jul 2026 11:05:47 +0000 Subject: [PATCH] =?UTF-8?q?ND=20loft=20roof=20on=20a=20pre-1950=20dwelling?= =?UTF-8?q?=20gets=20loft=20insulation=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- domain/modelling/generators/roof_recommendation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/domain/modelling/generators/roof_recommendation.py b/domain/modelling/generators/roof_recommendation.py index 3bdebd1b9..f20a5103a 100644 --- a/domain/modelling/generators/roof_recommendation.py +++ b/domain/modelling/generators/roof_recommendation.py @@ -130,7 +130,9 @@ def recommend_roof_insulation( if "no access" in roof_type: return None # the roof void can't be reached to insulate it - if main.roof_insulation_thickness != _ROOF_UNINSULATED_MM: + if not _pitched_roof_is_uninsulated( + main.roof_insulation_thickness, main.construction_age_band + ): return None return _roof_recommendation( epc,