mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 01:28:24 +00:00
Fix bug when interpreting miele action response (#149710)
This commit is contained in:
parent
f9e7459901
commit
7a55373b0b
@ -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,
|
||||
}),
|
||||
]),
|
||||
})
|
||||
# ---
|
||||
|
Loading…
x
Reference in New Issue
Block a user