mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Expose detailed Ecobee equipment status (#20767)
* ecobee: expose detailed equipment status * Fix #18244 for ecobee by moving current_operation property to current_operation_mode which is more accurate and defining current_operation properly, thanks @ZetaPhoenix * fix docstring and lint issue * Revert "fix docstring and lint issue" This reverts commit d3a645f075f8a4017756f5eae05f00f05e2556cf. * Revert "Fix #18244 for ecobee by moving current_operation property to current_operation_mode which is more accurate and defining current_operation properly, thanks @ZetaPhoenix" This reverts commit bfd90551ef759b2c160d69da0778df89251e156b.
This commit is contained in:
parent
f272ed3b91
commit
c59d45caa3
@ -279,6 +279,7 @@ class Thermostat(ClimateDevice):
|
||||
"fan": self.fan,
|
||||
"climate_mode": self.mode,
|
||||
"operation": operation,
|
||||
"equipment_running": status,
|
||||
"climate_list": self.climate_list,
|
||||
"fan_min_on_time": self.fan_min_on_time
|
||||
}
|
||||
|
@ -183,7 +183,8 @@ class TestEcobee(unittest.TestCase):
|
||||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'heat'} == \
|
||||
'operation': 'heat',
|
||||
'equipment_running': 'heatPump2'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
|
||||
self.ecobee['equipmentStatus'] = 'auxHeat2'
|
||||
@ -192,7 +193,8 @@ class TestEcobee(unittest.TestCase):
|
||||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'heat'} == \
|
||||
'operation': 'heat',
|
||||
'equipment_running': 'auxHeat2'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
self.ecobee['equipmentStatus'] = 'compCool1'
|
||||
assert {'actual_humidity': 15,
|
||||
@ -200,7 +202,8 @@ class TestEcobee(unittest.TestCase):
|
||||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'cool'} == \
|
||||
'operation': 'cool',
|
||||
'equipment_running': 'compCool1'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
self.ecobee['equipmentStatus'] = ''
|
||||
assert {'actual_humidity': 15,
|
||||
@ -208,7 +211,8 @@ class TestEcobee(unittest.TestCase):
|
||||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'idle'} == \
|
||||
'operation': 'idle',
|
||||
'equipment_running': ''} == \
|
||||
self.thermostat.device_state_attributes
|
||||
|
||||
self.ecobee['equipmentStatus'] = 'Unknown'
|
||||
@ -217,7 +221,8 @@ class TestEcobee(unittest.TestCase):
|
||||
'fan': 'off',
|
||||
'fan_min_on_time': 10,
|
||||
'climate_mode': 'Climate1',
|
||||
'operation': 'Unknown'} == \
|
||||
'operation': 'Unknown',
|
||||
'equipment_running': 'Unknown'} == \
|
||||
self.thermostat.device_state_attributes
|
||||
|
||||
def test_is_away_mode_on(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user