Skip to content

Commit 693400e

Browse files
committed
Fix tests
1 parent 3db0b80 commit 693400e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_climate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ async def test_async_set_hvac_mode_heat_from_off(hass, mock_coordinator, mock_co
278278
):
279279
await climate.async_set_hvac_mode(HVACMode.HEAT)
280280

281-
# Should call: set_power and set_mode (2 total, centralized approach)
282-
assert mock_executor.call_count == 2
283-
# async_request_refresh should be called twice
284-
assert mock_refresh.call_count == 2
281+
# Should call: set_power and set_mode together (1 total, centralized approach)
282+
assert mock_executor.call_count == 1
283+
# async_request_refresh should be called once
284+
assert mock_refresh.call_count == 1
285285

286286

287287
@pytest.mark.asyncio

0 commit comments

Comments
 (0)