1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Don't use executor in send_big_result (#75427)

This commit is contained in:
uvjustin
2022-07-19 21:40:23 +08:00
committed by GitHub
parent b6d235c0c2
commit 6b60fb9541
5 changed files with 7 additions and 10 deletions

View File

@@ -17,8 +17,8 @@ async def test_send_big_result(hass, websocket_client):
@websocket_api.websocket_command({"type": "big_result"})
@websocket_api.async_response
async def send_big_result(hass, connection, msg):
await connection.send_big_result(msg["id"], {"big": "result"})
def send_big_result(hass, connection, msg):
connection.send_big_result(msg["id"], {"big": "result"})
websocket_api.async_register_command(hass, send_big_result)