Only set fan state in ecobee set_fan_mode service (#48086)

This commit is contained in:
Brent Petit 2021-04-18 15:35:03 -05:00 committed by GitHub
parent 04a0ca14e0
commit 080c89c761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 9 deletions

View file

@ -320,7 +320,7 @@ async def test_set_fan_mode_on(thermostat, data):
data.reset_mock()
thermostat.set_fan_mode("on")
data.ecobee.set_fan_mode.assert_has_calls(
[mock.call(1, "on", 20, 40, "nextTransition")]
[mock.call(1, "on", "nextTransition", holdHours=None)]
)
@ -329,5 +329,5 @@ async def test_set_fan_mode_auto(thermostat, data):
data.reset_mock()
thermostat.set_fan_mode("auto")
data.ecobee.set_fan_mode.assert_has_calls(
[mock.call(1, "auto", 20, 40, "nextTransition")]
[mock.call(1, "auto", "nextTransition", holdHours=None)]
)