Skip to content

Commit

Permalink
Changed indoor temperature resolve method
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Dec 26, 2021
1 parent 7159c0c commit 45976de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ThermiaOnlineAPI/model/HeatPump.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def has_indoor_temp_sensor(self):

@property
def indoor_temperature(self):
return self.__status.get("indoorTemperature")
if self.has_indoor_temp_sensor:
return self.__status.get("indoorTemperature")
else:
return self.heat_temperature

@property
def is_outdoor_temp_sensor_functioning(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(
name='ThermiaOnlineAPI',
packages=['ThermiaOnlineAPI', 'ThermiaOnlineAPI.api', 'ThermiaOnlineAPI.model'],
version='1.7',
version='1.8',
license='GPL-3.0',
description='A Python API for Thermia heat pumps using https://online.thermia.se',
long_description=long_description,
Expand Down

0 comments on commit 45976de

Please sign in to comment.