mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 16:39:02 +02:00
Fix bug when interpreting miele action response (#149710)
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
]),
|
||||
})
|
||||
# ---
|
||||
|
||||
Reference in New Issue
Block a user