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