Closed 0R2YPsALXTVed6y closed 1 year ago
Hi, After some debugging i think this should be changed code:
@property
def min_temp(self):
"""Return the minimum temperature."""
if self._spaclient.get_temp_range() == "High":
if self.hass.config.units.temperature_unit == TEMP_CELSIUS:
return round(TemperatureConverter.convert(self._spaclient.get_high_range_min(), TEMP_FAHRENHEIT, TEMP_CELSIUS) * 2) / 2
return TemperatureConverter.convert(self._spaclient.get_high_range_min(), TEMP_FAHRENHEIT, self.temperature_unit)
if self.hass.config.units.temperature_unit == TEMP_CELSIUS:
return round(TemperatureConverter.convert(self._spaclient.get_low_range_min(), TEMP_FAHRENHEIT, TEMP_CELSIUS) * 2) / 2
return TemperatureConverter.convert(self._spaclient.get_low_range_min(), TEMP_FAHRENHEIT, self.temperature_unit)
@property
def max_temp(self):
"""Return the maximum temperature."""
if self._spaclient.get_temp_range() == "High":
if self.hass.config.units.temperature_unit == TEMP_CELSIUS:
return round(TemperatureConverter.convert(self._spaclient.get_high_range_max(), TEMP_FAHRENHEIT, TEMP_CELSIUS) * 2) / 2
return TemperatureConverter.convert(self._spaclient.get_high_range_max(), TEMP_FAHRENHEIT, self.temperature_unit)
if self.hass.config.units.temperature_unit == TEMP_CELSIUS:
return round(TemperatureConverter.convert(self._spaclient.get_low_range_max(), TEMP_FAHRENHEIT, TEMP_CELSIUS) * 2) / 2
return TemperatureConverter.convert(self._spaclient.get_low_range_max(), TEMP_FAHRENHEIT, self.temperature_unit)
Integrated in "Spa Client v2.6c" version!
Thanks for your help!
Hi there,
Thanks for all your hard work!
Can you please fix a rounding issue for min max temps?
In you file climate.py you have the following code:
This i working fine, so can you add this to: