Address review feedback: round setpoints and fix test docstring

This commit is contained in:
J. Nick Koston
2026-02-19 16:00:52 -06:00
parent 3339016f32
commit a3e692eb60
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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)