From f8f4c7ddebced2bdb3191f3d82e31fac8793dcde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Wed, 6 Aug 2025 15:57:16 +0100 Subject: [PATCH] copilot: Update homeassistant/components/websocket_api/commands.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- homeassistant/components/websocket_api/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py index 69c6389776b..f6e70b6d7d7 100644 --- a/homeassistant/components/websocket_api/commands.py +++ b/homeassistant/components/websocket_api/commands.py @@ -865,8 +865,7 @@ def handle_expand_target( "missing_labels": extracted.missing_labels, } - payload = json_bytes(extracted_dict) - connection.send_message(construct_result_message(msg["id"], payload)) + connection.send_result(msg["id"], extracted_dict) @decorators.websocket_command(