Skip to content

Commit 145a332

Browse files
authored
Merge pull request #284 from jwillemsen/jwi-alwaysminmaxtemp
Always return a min/max temp, if Daikin doesn't provide it we use the…
2 parents 3f36eec + 53f9867 commit 145a332

File tree

2 files changed

+76
-72
lines changed

2 files changed

+76
-72
lines changed

custom_components/daikin_onecta/climate.py

+4
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ def get_max_temp(self):
265265
setpointdict = self.setpoint()
266266
if setpointdict is not None:
267267
max_temp = setpointdict["maxValue"]
268+
else:
269+
max_temp = super().max_temp
268270
_LOGGER.info(
269271
"Device '%s': %s max temperature '%s'",
270272
self._device.name,
@@ -278,6 +280,8 @@ def get_min_temp(self):
278280
setpointdict = self.setpoint()
279281
if setpointdict is not None:
280282
min_temp = setpointdict["minValue"]
283+
else:
284+
min_temp = super().min_temp
281285
_LOGGER.info(
282286
"Device '%s': %s min temperature '%s'",
283287
self._device.name,

0 commit comments

Comments
 (0)