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

@ -644,14 +644,11 @@ class Thermostat(ClimateEntity):
_LOGGER.error(error)
return
cool_temp = self.thermostat["runtime"]["desiredCool"] / 10.0
heat_temp = self.thermostat["runtime"]["desiredHeat"] / 10.0
self.data.ecobee.set_fan_mode(
self.thermostat_index,
fan_mode,
cool_temp,
heat_temp,
self.hold_preference(),
holdHours=self.hold_hours(),
)
_LOGGER.info("Setting fan mode to: %s", fan_mode)

View file

@ -3,7 +3,7 @@
"name": "ecobee",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/ecobee",
"requirements": ["python-ecobee-api==0.2.10"],
"requirements": ["python-ecobee-api==0.2.11"],
"codeowners": ["@marthoc"],
"iot_class": "cloud_polling"
}

View file

@ -1771,7 +1771,7 @@ python-clementine-remote==1.0.1
python-digitalocean==1.13.2
# homeassistant.components.ecobee
python-ecobee-api==0.2.10
python-ecobee-api==0.2.11
# homeassistant.components.eq3btsmart
# python-eq3bt==0.1.11

View file

@ -962,7 +962,7 @@ pysqueezebox==0.5.5
pysyncthru==0.7.0
# homeassistant.components.ecobee
python-ecobee-api==0.2.10
python-ecobee-api==0.2.11
# homeassistant.components.darksky
python-forecastio==1.4.0

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