diff --git a/homeassistant/components/vicare/climate.py b/homeassistant/components/vicare/climate.py index 8320db73ad4..02998343744 100644 --- a/homeassistant/components/vicare/climate.py +++ b/homeassistant/components/vicare/climate.py @@ -24,7 +24,12 @@ from homeassistant.components.climate.const import ( SUPPORT_TARGET_TEMPERATURE, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, TEMP_CELSIUS +from homeassistant.const import ( + ATTR_TEMPERATURE, + PRECISION_TENTHS, + PRECISION_WHOLE, + TEMP_CELSIUS, +) from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_platform import homeassistant.helpers.config_validation as cv @@ -310,6 +315,11 @@ class ViCareClimate(ClimateEntity): @property def precision(self): """Return the precision of the system.""" + return PRECISION_TENTHS + + @property + def target_temperature_step(self) -> float: + """Set target temperature step to wholes.""" return PRECISION_WHOLE def set_temperature(self, **kwargs): diff --git a/homeassistant/components/vicare/water_heater.py b/homeassistant/components/vicare/water_heater.py index 139c8f75e7f..e1e44188d28 100644 --- a/homeassistant/components/vicare/water_heater.py +++ b/homeassistant/components/vicare/water_heater.py @@ -14,7 +14,12 @@ from homeassistant.components.water_heater import ( WaterHeaterEntity, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, TEMP_CELSIUS +from homeassistant.const import ( + ATTR_TEMPERATURE, + PRECISION_TENTHS, + PRECISION_WHOLE, + TEMP_CELSIUS, +) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -191,10 +196,15 @@ class ViCareWater(WaterHeaterEntity): """Return the maximum temperature.""" return VICARE_TEMP_WATER_MAX + @property + def target_temperature_step(self) -> float: + """Set target temperature step to wholes.""" + return PRECISION_WHOLE + @property def precision(self): """Return the precision of the system.""" - return PRECISION_WHOLE + return PRECISION_TENTHS @property def current_operation(self):