diff --git a/homeassistant/components/modbus/climate.py b/homeassistant/components/modbus/climate.py index bfc04024e45..54894a4227c 100644 --- a/homeassistant/components/modbus/climate.py +++ b/homeassistant/components/modbus/climate.py @@ -16,6 +16,8 @@ from homeassistant.const import ( CONF_OFFSET, CONF_STRUCTURE, CONF_TEMPERATURE_UNIT, + PRECISION_TENTHS, + PRECISION_WHOLE, TEMP_CELSIUS, TEMP_FAHRENHEIT, ) @@ -134,6 +136,11 @@ class ModbusThermostat(BasePlatform, RestoreEntity, ClimateEntity): """Return the unit of measurement.""" return TEMP_FAHRENHEIT if self._unit == "F" else TEMP_CELSIUS + @property + def precision(self) -> float: + """Return the precision of the system.""" + return PRECISION_TENTHS if self._precision >= 1 else PRECISION_WHOLE + @property def min_temp(self): """Return the minimum temperature."""