Minor bug fixes
This commit is contained in:
parent
44e6820ce6
commit
da819ad9d0
@ -62,6 +62,10 @@ class ThermalZone:
|
||||
self._domestic_hot_water = None
|
||||
self._usage_name = None
|
||||
self._usages = usages
|
||||
self._usage_from_parent = False
|
||||
if usages is None:
|
||||
self._usage_from_parent = True
|
||||
|
||||
|
||||
@property
|
||||
def parent_internal_zone(self) -> InternalZone:
|
||||
@ -74,11 +78,10 @@ class ThermalZone:
|
||||
@property
|
||||
def usages(self):
|
||||
"""
|
||||
Get the thermal zone usages including percentage with the format [percentage]-usage_[percentage]-usage...
|
||||
Eg: 70-office_30-residential
|
||||
Get the thermal zone usages
|
||||
:return: str
|
||||
"""
|
||||
if self._usages is not None:
|
||||
if self._usage_from_parent:
|
||||
self._usages = copy.deepcopy(self._parent_internal_zone.usages)
|
||||
return self._usages
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user