mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
patching heating controls
This commit is contained in:
parent
d557653129
commit
edb541f3dc
2 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue