diff --git a/homeassistant/components/trane/climate.py b/homeassistant/components/trane/climate.py index 33704f70f5f..b076236a44c 100644 --- a/homeassistant/components/trane/climate.py +++ b/homeassistant/components/trane/climate.py @@ -191,8 +191,8 @@ class TraneClimateEntity(TraneZoneEntity, ClimateEntity): self._conn.set_temperature_setpoint( self._zone_id, - heat_setpoint=str(int(heat_temp)) if heat_temp is not None else None, - cool_setpoint=str(int(cool_temp)) if cool_temp is not None else None, + heat_setpoint=str(round(heat_temp)) if heat_temp is not None else None, + cool_setpoint=str(round(cool_temp)) if cool_temp is not None else None, ) async def async_set_fan_mode(self, fan_mode: str) -> None: diff --git a/tests/components/trane/test_climate.py b/tests/components/trane/test_climate.py index 48125481930..0f296ecd684 100644 --- a/tests/components/trane/test_climate.py +++ b/tests/components/trane/test_climate.py @@ -94,7 +94,7 @@ async def test_current_humidity_not_available( mock_config_entry: MockConfigEntry, mock_connection: MagicMock, ) -> None: - """Test current humidity is None when not yet received.""" + """Test current humidity is omitted when not yet received.""" mock_connection.state.relative_humidity = "" mock_config_entry.add_to_hass(hass)