Skip to content

Commit

Permalink
Merge pull request #284 from jwillemsen/jwi-alwaysminmaxtemp
Browse files Browse the repository at this point in the history
Always return a min/max temp, if Daikin doesn't provide it we use the…
  • Loading branch information
jwillemsen authored Aug 15, 2024
2 parents 3f36eec + 53f9867 commit 145a332
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 72 deletions.
4 changes: 4 additions & 0 deletions custom_components/daikin_onecta/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ def get_max_temp(self):
setpointdict = self.setpoint()
if setpointdict is not None:
max_temp = setpointdict["maxValue"]
else:
max_temp = super().max_temp
_LOGGER.info(
"Device '%s': %s max temperature '%s'",
self._device.name,
Expand All @@ -278,6 +280,8 @@ def get_min_temp(self):
setpointdict = self.setpoint()
if setpointdict is not None:
min_temp = setpointdict["minValue"]
else:
min_temp = super().min_temp
_LOGGER.info(
"Device '%s': %s min temperature '%s'",
self._device.name,
Expand Down
Loading

0 comments on commit 145a332

Please sign in to comment.