Expose comfort presets as HA presets (#25491)
* Expose comfort presets as HA presets * Fix bugs * Handle unavailable * log level debug on update * Lint
This commit is contained in:
1 parent
207cf18a46
commit
59b42b4236
3 files changed
+29
-52
No files matched your search
@@ -130,44 +130,34 @@ class TestEcobee(unittest.TestCase):
|
||||
"""Test device state attributes property."""
|
||||
self.ecobee["equipmentStatus"] = "heatPump2"
|
||||
assert {
|
||||
"climate_list": ["Climate1", "Climate2"],
|
||||
"fan": "off",
|
||||
"fan_min_on_time": 10,
|
||||
"climate_mode": "Climate1",
|
||||
"equipment_running": "heatPump2",
|
||||
} == self.thermostat.device_state_attributes
|
||||
|
||||
self.ecobee["equipmentStatus"] = "auxHeat2"
|
||||
assert {
|
||||
"climate_list": ["Climate1", "Climate2"],
|
||||
"fan": "off",
|
||||
"fan_min_on_time": 10,
|
||||
"climate_mode": "Climate1",
|
||||
"equipment_running": "auxHeat2",
|
||||
} == self.thermostat.device_state_attributes
|
||||
self.ecobee["equipmentStatus"] = "compCool1"
|
||||
assert {
|
||||
"climate_list": ["Climate1", "Climate2"],
|
||||
"fan": "off",
|
||||
"fan_min_on_time": 10,
|
||||
"climate_mode": "Climate1",
|
||||
"equipment_running": "compCool1",
|
||||
} == self.thermostat.device_state_attributes
|
||||
self.ecobee["equipmentStatus"] = ""
|
||||
assert {
|
||||
"climate_list": ["Climate1", "Climate2"],
|
||||
"fan": "off",
|
||||
"fan_min_on_time": 10,
|
||||
"climate_mode": "Climate1",
|
||||
"equipment_running": "",
|
||||
} == self.thermostat.device_state_attributes
|
||||
|
||||
self.ecobee["equipmentStatus"] = "Unknown"
|
||||
assert {
|
||||
"climate_list": ["Climate1", "Climate2"],
|
||||
"fan": "off",
|
||||
"fan_min_on_time": 10,
|
||||
"climate_mode": "Climate1",
|
||||
"equipment_running": "Unknown",
|
||||
} == self.thermostat.device_state_attributes
|
||||
|
||||
@@ -267,10 +257,6 @@ class TestEcobee(unittest.TestCase):
|
||||
self.ecobee["settings"]["holdAction"] = action
|
||||
assert "nextTransition" == self.thermostat.hold_preference()
|
||||
|
||||
def test_climate_list(self):
|
||||
"""Test climate list property."""
|
||||
assert ["Climate1", "Climate2"] == self.thermostat.climate_list
|
||||
|
||||
def test_set_fan_mode_on(self):
|
||||
"""Test set fan mode to on."""
|
||||
self.data.reset_mock()
|
||||
|
||||
Reference in new issue
Block a user