From 94d010a4c055c3d6fdd5a6b097d56059221e3eba Mon Sep 17 00:00:00 2001 From: Dave T <17680170+davet2001@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:49:41 +0100 Subject: [PATCH] Fix vscode debug launch deprecation warning by swapping python to debugpy (#120866) --- .vscode/launch.json | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 78e0dda152b..7b77a1c9bfd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,38 +6,52 @@ "configurations": [ { "name": "Home Assistant", - "type": "python", + "type": "debugpy", "request": "launch", "module": "homeassistant", "justMyCode": false, - "args": ["--debug", "-c", "config"], + "args": [ + "--debug", + "-c", + "config" + ], "preLaunchTask": "Compile English translations" }, { "name": "Home Assistant (skip pip)", - "type": "python", + "type": "debugpy", "request": "launch", "module": "homeassistant", "justMyCode": false, - "args": ["--debug", "-c", "config", "--skip-pip"], + "args": [ + "--debug", + "-c", + "config", + "--skip-pip" + ], "preLaunchTask": "Compile English translations" }, { "name": "Home Assistant: Changed tests", - "type": "python", + "type": "debugpy", "request": "launch", "module": "pytest", "justMyCode": false, - "args": ["--timeout=10", "--picked"], + "args": [ + "--timeout=10", + "--picked" + ], }, { // Debug by attaching to local Home Assistant server using Remote Python Debugger. // See https://www.home-assistant.io/integrations/debugpy/ "name": "Home Assistant: Attach Local", - "type": "python", + "type": "debugpy", "request": "attach", - "port": 5678, - "host": "localhost", + "connect": { + "port": 5678, + "host": "localhost" + }, "pathMappings": [ { "localRoot": "${workspaceFolder}", @@ -49,10 +63,12 @@ // Debug by attaching to remote Home Assistant server using Remote Python Debugger. // See https://www.home-assistant.io/integrations/debugpy/ "name": "Home Assistant: Attach Remote", - "type": "python", + "type": "debugpy", "request": "attach", - "port": 5678, - "host": "homeassistant.local", + "connect": { + "port": 5678, + "host": "homeassistant.local" + }, "pathMappings": [ { "localRoot": "${workspaceFolder}", @@ -61,4 +77,4 @@ ] } ] -} +} \ No newline at end of file