From 70d7f74f359a6dde1f80840b0f4a77c92f643b87 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 23 Feb 2024 00:48:13 -1000 Subject: [PATCH] Convert hardware system status websocket api to a normal function (#111172) * Convert hardware system status websocket api to a normal function Nothing is awaited here * tweak --- homeassistant/components/hardware/websocket_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/hardware/websocket_api.py b/homeassistant/components/hardware/websocket_api.py index 918c96c5643..d4e4f2fed5c 100644 --- a/homeassistant/components/hardware/websocket_api.py +++ b/homeassistant/components/hardware/websocket_api.py @@ -66,13 +66,13 @@ async def ws_info( connection.send_result(msg["id"], {"hardware": hardware_info}) +@callback @websocket_api.websocket_command( { vol.Required("type"): "hardware/subscribe_system_status", } ) -@websocket_api.async_response -async def ws_subscribe_system_status( +def ws_subscribe_system_status( hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any] ) -> None: """Subscribe to system status updates."""