Fix bug when interpreting miele action response (#149710)

This commit is contained in:
Åke Strandberg 2025-07-31 01:07:12 +02:00 committed by GitHub
parent f9e7459901
commit 7a55373b0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View File

@ -203,7 +203,7 @@ async def get_programs(call: ServiceCall) -> ServiceResponse:
else {} else {}
), ),
} }
if item["parameters"] if item.get("parameters")
else {} else {}
), ),
} }

View File

@ -30,5 +30,9 @@
"mandatory": true "mandatory": true
} }
} }
},
{
"programId": 24000,
"program": "Ristretto"
} }
] ]

View File

@ -43,6 +43,12 @@
'program': 'Fan plus', 'program': 'Fan plus',
'program_id': 13, 'program_id': 13,
}), }),
dict({
'parameters': dict({
}),
'program': 'Ristretto',
'program_id': 24000,
}),
]), ]),
}) })
# --- # ---