patching heating controls

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-24 14:36:46 +00:00
parent d557653129
commit edb541f3dc
2 changed files with 11 additions and 0 deletions

View file

@ -319,6 +319,7 @@ class Property(Definitions):
attributes = [
x for x in cleaned[description] if x["original_description"] == self.data[description]
]
if len(attributes) > 1:
raise ValueError("Either No attributes or multiple found for %s" % description)

View file

@ -786,6 +786,16 @@ def app():
]
)
# Patch mainheatcont-description
cleaned["mainheatcont-description"].extend(
[
{'original_description': 'None', 'clean_description': 'None', 'thermostatic_control': False,
'charging_system': False, 'switch_system': False, 'no_control': False, 'dhw_control': False,
'community_heating': False, 'multiple_room_thermostats': False, 'auxiliary_systems': False, 'trvs': False,
'rate_control': False}
]
)
# We patch this record because there is another property below
for x in cleaned["floor-description"]:
if x["original_description"] == '(Same dwelling below) insulated (assumed)':