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."""