Skip to content

Commit

Permalink
Update climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ic-dev21 authored Oct 4, 2024
1 parent dd35cdd commit cb752ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyhilo/device/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ def target_temperature(self) -> float:

@property
def max_temp(self) -> float:
value = self.get_value("max_temp_setpoint", 30)
value = self.get_value("max_temp_setpoint", 0)

if value is None or value == 0:
return 36.0
return float(value)

@property
def min_temp(self) -> float:
value = self.get_value("min_temp_setpoint", 5)
value = self.get_value("min_temp_setpoint", 0)

if value is None or value == 0:
return 5.0
Expand Down

0 comments on commit cb752ad

Please sign in to comment.