mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Update integrations a-e to override extra_state_attributes() (#47756)
This commit is contained in:
@@ -147,7 +147,7 @@ async def test_hvac_mode2(ecobee_fixture, thermostat):
|
||||
assert thermostat.hvac_mode == "heat"
|
||||
|
||||
|
||||
async def test_device_state_attributes(ecobee_fixture, thermostat):
|
||||
async def test_extra_state_attributes(ecobee_fixture, thermostat):
|
||||
"""Test device state attributes property."""
|
||||
ecobee_fixture["equipmentStatus"] = "heatPump2"
|
||||
assert {
|
||||
@@ -155,7 +155,7 @@ async def test_device_state_attributes(ecobee_fixture, thermostat):
|
||||
"climate_mode": "Climate1",
|
||||
"fan_min_on_time": 10,
|
||||
"equipment_running": "heatPump2",
|
||||
} == thermostat.device_state_attributes
|
||||
} == thermostat.extra_state_attributes
|
||||
|
||||
ecobee_fixture["equipmentStatus"] = "auxHeat2"
|
||||
assert {
|
||||
@@ -163,21 +163,21 @@ async def test_device_state_attributes(ecobee_fixture, thermostat):
|
||||
"climate_mode": "Climate1",
|
||||
"fan_min_on_time": 10,
|
||||
"equipment_running": "auxHeat2",
|
||||
} == thermostat.device_state_attributes
|
||||
} == thermostat.extra_state_attributes
|
||||
ecobee_fixture["equipmentStatus"] = "compCool1"
|
||||
assert {
|
||||
"fan": "off",
|
||||
"climate_mode": "Climate1",
|
||||
"fan_min_on_time": 10,
|
||||
"equipment_running": "compCool1",
|
||||
} == thermostat.device_state_attributes
|
||||
} == thermostat.extra_state_attributes
|
||||
ecobee_fixture["equipmentStatus"] = ""
|
||||
assert {
|
||||
"fan": "off",
|
||||
"climate_mode": "Climate1",
|
||||
"fan_min_on_time": 10,
|
||||
"equipment_running": "",
|
||||
} == thermostat.device_state_attributes
|
||||
} == thermostat.extra_state_attributes
|
||||
|
||||
ecobee_fixture["equipmentStatus"] = "Unknown"
|
||||
assert {
|
||||
@@ -185,7 +185,7 @@ async def test_device_state_attributes(ecobee_fixture, thermostat):
|
||||
"climate_mode": "Climate1",
|
||||
"fan_min_on_time": 10,
|
||||
"equipment_running": "Unknown",
|
||||
} == thermostat.device_state_attributes
|
||||
} == thermostat.extra_state_attributes
|
||||
|
||||
ecobee_fixture["program"]["currentClimateRef"] = "c2"
|
||||
assert {
|
||||
@@ -193,7 +193,7 @@ async def test_device_state_attributes(ecobee_fixture, thermostat):
|
||||
"climate_mode": "Climate2",
|
||||
"fan_min_on_time": 10,
|
||||
"equipment_running": "Unknown",
|
||||
} == thermostat.device_state_attributes
|
||||
} == thermostat.extra_state_attributes
|
||||
|
||||
|
||||
async def test_is_aux_heat_on(ecobee_fixture, thermostat):
|
||||
|
||||
Reference in New Issue
Block a user