Only set fan state in ecobee set_fan_mode service (#48086)
This commit is contained in:
parent
04a0ca14e0
commit
080c89c761
5 changed files with 6 additions and 9 deletions
|
@ -644,14 +644,11 @@ class Thermostat(ClimateEntity):
|
||||||
_LOGGER.error(error)
|
_LOGGER.error(error)
|
||||||
return
|
return
|
||||||
|
|
||||||
cool_temp = self.thermostat["runtime"]["desiredCool"] / 10.0
|
|
||||||
heat_temp = self.thermostat["runtime"]["desiredHeat"] / 10.0
|
|
||||||
self.data.ecobee.set_fan_mode(
|
self.data.ecobee.set_fan_mode(
|
||||||
self.thermostat_index,
|
self.thermostat_index,
|
||||||
fan_mode,
|
fan_mode,
|
||||||
cool_temp,
|
|
||||||
heat_temp,
|
|
||||||
self.hold_preference(),
|
self.hold_preference(),
|
||||||
|
holdHours=self.hold_hours(),
|
||||||
)
|
)
|
||||||
|
|
||||||
_LOGGER.info("Setting fan mode to: %s", fan_mode)
|
_LOGGER.info("Setting fan mode to: %s", fan_mode)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "ecobee",
|
"name": "ecobee",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/ecobee",
|
"documentation": "https://www.home-assistant.io/integrations/ecobee",
|
||||||
"requirements": ["python-ecobee-api==0.2.10"],
|
"requirements": ["python-ecobee-api==0.2.11"],
|
||||||
"codeowners": ["@marthoc"],
|
"codeowners": ["@marthoc"],
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1771,7 +1771,7 @@ python-clementine-remote==1.0.1
|
||||||
python-digitalocean==1.13.2
|
python-digitalocean==1.13.2
|
||||||
|
|
||||||
# homeassistant.components.ecobee
|
# homeassistant.components.ecobee
|
||||||
python-ecobee-api==0.2.10
|
python-ecobee-api==0.2.11
|
||||||
|
|
||||||
# homeassistant.components.eq3btsmart
|
# homeassistant.components.eq3btsmart
|
||||||
# python-eq3bt==0.1.11
|
# python-eq3bt==0.1.11
|
||||||
|
|
|
@ -962,7 +962,7 @@ pysqueezebox==0.5.5
|
||||||
pysyncthru==0.7.0
|
pysyncthru==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.ecobee
|
# homeassistant.components.ecobee
|
||||||
python-ecobee-api==0.2.10
|
python-ecobee-api==0.2.11
|
||||||
|
|
||||||
# homeassistant.components.darksky
|
# homeassistant.components.darksky
|
||||||
python-forecastio==1.4.0
|
python-forecastio==1.4.0
|
||||||
|
|
|
@ -320,7 +320,7 @@ async def test_set_fan_mode_on(thermostat, data):
|
||||||
data.reset_mock()
|
data.reset_mock()
|
||||||
thermostat.set_fan_mode("on")
|
thermostat.set_fan_mode("on")
|
||||||
data.ecobee.set_fan_mode.assert_has_calls(
|
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()
|
data.reset_mock()
|
||||||
thermostat.set_fan_mode("auto")
|
thermostat.set_fan_mode("auto")
|
||||||
data.ecobee.set_fan_mode.assert_has_calls(
|
data.ecobee.set_fan_mode.assert_has_calls(
|
||||||
[mock.call(1, "auto", 20, 40, "nextTransition")]
|
[mock.call(1, "auto", "nextTransition", holdHours=None)]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue