fix: clean up description escaping, add string-data tests

Follow-up for cherry-picked PR #8918.
This commit is contained in:
Teknium
2026-04-13 04:44:43 -07:00
committed by Teknium
parent bca22f3090
commit 8dfee98d06
2 changed files with 59 additions and 4 deletions

View File

@@ -458,10 +458,10 @@ HA_CALL_SERVICE_SCHEMA = {
"data": {
"type": "string",
"description": (
"Additional service data provided as a valid JSON string. Examples: "
'\'{"brightness": 255, "color_name": "blue"}\' for lights, '
'\'{"temperature": 22, "hvac_mode": "heat"}\' for climate, '
'\'{"volume_level": 0.5}\' for media players.'
"Additional service data as a JSON string. Examples: "
'{"brightness": 255, "color_name": "blue"} for lights, '
'{"temperature": 22, "hvac_mode": "heat"} for climate, '
'{"volume_level": 0.5} for media players.'
),
},
},