From a3e692eb60a352f54ec0815efccfc7c75f397bc9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 19 Feb 2026 16:00:52 -0600 Subject: [PATCH] Address review feedback: round setpoints and fix test docstring --- homeassistant/components/trane/climate.py | 4 ++-- tests/components/trane/test_climate.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)