Skip to content

Commit

Permalink
Update hubsensors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Nov 5, 2024
1 parent 9b91a7d commit 901bbd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/peaqhvac/service/hub/hubsensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def get_tempdiff(self) -> float:
return _indoors - _set_temp

def get_tempdiff_in_out(self) -> float:
_indoors = getattr(self.average_temp_indoors, "value", 0)
_indoors = min([getattr(self.average_temp_indoors, "median",0),
getattr(self.average_temp_indoors, "value", 0)
])
_outdoors = getattr(self.average_temp_outdoors, "value", 0)
return _indoors - _outdoors

0 comments on commit 901bbd4

Please sign in to comment.