Strip leading and trailing whitespace in program names in miele action response (#149643)

This commit is contained in:
Åke Strandberg 2025-07-30 00:23:03 +02:00 committed by GitHub
parent 73e578b168
commit 45ae34cc0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ async def get_programs(call: ServiceCall) -> ServiceResponse:
"programs": [ "programs": [
{ {
"program_id": item["programId"], "program_id": item["programId"],
"program": item["program"], "program": item["program"].strip(),
"parameters": ( "parameters": (
{ {
"temperature": ( "temperature": (

View File

@ -11,7 +11,7 @@
}, },
{ {
"programId": 123, "programId": 123,
"program": "Dark garments / Denim", "program": "Dark garments / Denim ",
"parameters": {} "parameters": {}
}, },
{ {