diff --git a/custom_components/hon/climate.py b/custom_components/hon/climate.py index 4e910e9..d3763a0 100755 --- a/custom_components/hon/climate.py +++ b/custom_components/hon/climate.py @@ -186,7 +186,6 @@ def __init__(self,hass, coordinator, entry, appliance) -> None: #Not working for Farenheit self._attr_temperature_unit = UnitOfTemperature.CELSIUS # 'tempUnit': '0' - #self._attr_target_temperature_step = PRECISION_WHOLE self._enable_turn_on_off_backwards_compatibility = False self._attr_fan_modes = [] #[FAN_OFF, FAN_LOW, FAN_MEDIUM, FAN_HIGH, FAN_AUTO] @@ -200,7 +199,11 @@ def __init__(self,hass, coordinator, entry, appliance) -> None: # Set Min / Max temperatures temp_range = parameters.get('tempSel') - self._att_target_temperature_step = float(temp_range.step) + + self._attr_target_temperature_step = PRECISION_WHOLE + if isinstance(temp_range.step, float): + self._att_target_temperature_step = temp_range.step + if isinstance(temp_range, HonParameterRange): self._att_min_temp = temp_range.min self._att_max_temp = temp_range.max diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index fe64bcd..a7b12e0 100755 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://github.com/gvigroux/hon", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/gvigroux/hon/issues", - "version": "0.7.3" + "version": "0.7.4" }