diff --git a/custom_components/bosch_shc/climate.py b/custom_components/bosch_shc/climate.py index d6fa1b6..4692428 100644 --- a/custom_components/bosch_shc/climate.py +++ b/custom_components/bosch_shc/climate.py @@ -41,6 +41,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities): class ClimateControl(SHCEntity, ClimateEntity): """Representation of a SHC room climate control.""" + _attr_target_temperature_step = 0.5 + def __init__( self, device: SHCClimateControl, @@ -162,7 +164,7 @@ def set_temperature(self, **kwargs): return if self.min_temp <= temperature <= self.max_temp: - self._device.setpoint_temperature = float(temperature) + self._device.setpoint_temperature = float(round(temperature * 2.0) / 2.0) def set_hvac_mode(self, hvac_mode: str): """Set hvac mode."""