mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +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 = [
|
attributes = [
|
||||||
x for x in cleaned[description] if x["original_description"] == self.data[description]
|
x for x in cleaned[description] if x["original_description"] == self.data[description]
|
||||||
]
|
]
|
||||||
|
|
||||||
if len(attributes) > 1:
|
if len(attributes) > 1:
|
||||||
raise ValueError("Either No attributes or multiple found for %s" % description)
|
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
|
# We patch this record because there is another property below
|
||||||
for x in cleaned["floor-description"]:
|
for x in cleaned["floor-description"]:
|
||||||
if x["original_description"] == '(Same dwelling below) insulated (assumed)':
|
if x["original_description"] == '(Same dwelling below) insulated (assumed)':
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue