mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 15:55:14 +00:00
Address review feedback: round setpoints and fix test docstring
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user