mirror of
https://github.com/home-assistant/core.git
synced 2026-05-05 12:24:48 +02:00
Bump Plugwise to v1.7.8 preventing rogue KeyError (#149000)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
{
|
||||
"06aecb3d00354375924f50c47af36bd2": {
|
||||
"active_preset": "no_frost",
|
||||
"available_schedules": [],
|
||||
"climate_mode": "off",
|
||||
"dev_class": "climate",
|
||||
"model": "ThermoZone",
|
||||
"name": "Slaapkamer",
|
||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||
"select_schedule": null,
|
||||
"sensors": {
|
||||
"temperature": 24.2
|
||||
},
|
||||
@@ -23,12 +25,14 @@
|
||||
},
|
||||
"13228dab8ce04617af318a2888b3c548": {
|
||||
"active_preset": "home",
|
||||
"available_schedules": [],
|
||||
"climate_mode": "heat",
|
||||
"control_state": "idle",
|
||||
"dev_class": "climate",
|
||||
"model": "ThermoZone",
|
||||
"name": "Woonkamer",
|
||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||
"select_schedule": null,
|
||||
"sensors": {
|
||||
"temperature": 27.4
|
||||
},
|
||||
@@ -236,12 +240,14 @@
|
||||
},
|
||||
"d27aede973b54be484f6842d1b2802ad": {
|
||||
"active_preset": "home",
|
||||
"available_schedules": [],
|
||||
"climate_mode": "heat",
|
||||
"control_state": "idle",
|
||||
"dev_class": "climate",
|
||||
"model": "ThermoZone",
|
||||
"name": "Kinderkamer",
|
||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||
"select_schedule": null,
|
||||
"sensors": {
|
||||
"temperature": 30.0
|
||||
},
|
||||
@@ -283,12 +289,14 @@
|
||||
},
|
||||
"d58fec52899f4f1c92e4f8fad6d8c48c": {
|
||||
"active_preset": "home",
|
||||
"available_schedules": [],
|
||||
"climate_mode": "heat",
|
||||
"control_state": "idle",
|
||||
"dev_class": "climate",
|
||||
"model": "ThermoZone",
|
||||
"name": "Logeerkamer",
|
||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||
"select_schedule": null,
|
||||
"sensors": {
|
||||
"temperature": 30.0
|
||||
},
|
||||
|
||||
@@ -433,13 +433,16 @@ async def test_anna_climate_entity_climate_changes(
|
||||
"c784ee9fdab44e1395b8dee7d7a497d5", HVACMode.OFF
|
||||
)
|
||||
|
||||
# Mock user deleting last schedule from app or browser
|
||||
data = mock_smile_anna.async_update.return_value
|
||||
data["3cb70739631c4d17a86b8b12e8a5161b"].pop("available_schedules")
|
||||
data["3cb70739631c4d17a86b8b12e8a5161b"]["available_schedules"] = []
|
||||
data["3cb70739631c4d17a86b8b12e8a5161b"]["select_schedule"] = None
|
||||
data["3cb70739631c4d17a86b8b12e8a5161b"]["climate_mode"] = "heat_cool"
|
||||
with patch(HA_PLUGWISE_SMILE_ASYNC_UPDATE, return_value=data):
|
||||
freezer.tick(timedelta(minutes=1))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("climate.anna")
|
||||
assert state.state == HVACMode.HEAT
|
||||
assert state.state == HVACMode.HEAT_COOL
|
||||
assert state.attributes[ATTR_HVAC_MODES] == [HVACMode.HEAT_COOL]
|
||||
|
||||
Reference in New Issue
Block a user