Fix bug when interpreting miele action response (#149710)

This commit is contained in:
Åke Strandberg
2025-07-31 19:00:55 +02:00
committed by Bram Kragten
parent 537d09c697
commit 041c417164
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ async def get_programs(call: ServiceCall) -> ServiceResponse:
else {}
),
}
if item["parameters"]
if item.get("parameters")
else {}
),
}
@@ -30,5 +30,9 @@
"mandatory": true
}
}
},
{
"programId": 24000,
"program": "Ristretto"
}
]
@@ -43,6 +43,12 @@
'program': 'Fan plus',
'program_id': 13,
}),
dict({
'parameters': dict({
}),
'program': 'Ristretto',
'program_id': 24000,
}),
]),
})
# ---