2020-11-12 14:46:49 +00:00
|
|
|
{
|
|
|
|
// Use IntelliSense to learn about possible attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Home Assistant",
|
2024-07-05 12:49:41 +00:00
|
|
|
"type": "debugpy",
|
2020-11-12 14:46:49 +00:00
|
|
|
"request": "launch",
|
|
|
|
"module": "homeassistant",
|
2021-04-14 17:26:37 +00:00
|
|
|
"justMyCode": false,
|
2024-07-05 12:49:41 +00:00
|
|
|
"args": [
|
|
|
|
"--debug",
|
|
|
|
"-c",
|
|
|
|
"config"
|
|
|
|
],
|
2023-02-06 14:06:43 +00:00
|
|
|
"preLaunchTask": "Compile English translations"
|
2020-12-21 16:11:53 +00:00
|
|
|
},
|
2022-07-10 21:06:27 +00:00
|
|
|
{
|
|
|
|
"name": "Home Assistant (skip pip)",
|
2024-07-05 12:49:41 +00:00
|
|
|
"type": "debugpy",
|
2022-07-10 21:06:27 +00:00
|
|
|
"request": "launch",
|
|
|
|
"module": "homeassistant",
|
|
|
|
"justMyCode": false,
|
2024-07-05 12:49:41 +00:00
|
|
|
"args": [
|
|
|
|
"--debug",
|
|
|
|
"-c",
|
|
|
|
"config",
|
|
|
|
"--skip-pip"
|
|
|
|
],
|
2023-02-06 14:06:43 +00:00
|
|
|
"preLaunchTask": "Compile English translations"
|
2022-07-10 21:06:27 +00:00
|
|
|
},
|
2023-11-08 10:33:19 +00:00
|
|
|
{
|
|
|
|
"name": "Home Assistant: Changed tests",
|
2024-07-05 12:49:41 +00:00
|
|
|
"type": "debugpy",
|
2023-11-08 10:33:19 +00:00
|
|
|
"request": "launch",
|
|
|
|
"module": "pytest",
|
|
|
|
"justMyCode": false,
|
2024-07-05 12:49:41 +00:00
|
|
|
"args": [
|
|
|
|
"--timeout=10",
|
|
|
|
"--picked"
|
|
|
|
],
|
2023-11-08 10:33:19 +00:00
|
|
|
},
|
2020-12-21 16:11:53 +00:00
|
|
|
{
|
2023-04-25 19:04:36 +00:00
|
|
|
// Debug by attaching to local Home Assistant server using Remote Python Debugger.
|
2020-12-21 16:11:53 +00:00
|
|
|
// See https://www.home-assistant.io/integrations/debugpy/
|
|
|
|
"name": "Home Assistant: Attach Local",
|
2024-07-05 12:49:41 +00:00
|
|
|
"type": "debugpy",
|
2020-12-21 16:11:53 +00:00
|
|
|
"request": "attach",
|
2024-07-05 12:49:41 +00:00
|
|
|
"connect": {
|
|
|
|
"port": 5678,
|
|
|
|
"host": "localhost"
|
|
|
|
},
|
2020-12-21 16:11:53 +00:00
|
|
|
"pathMappings": [
|
|
|
|
{
|
|
|
|
"localRoot": "${workspaceFolder}",
|
|
|
|
"remoteRoot": "."
|
|
|
|
}
|
2021-04-14 17:26:37 +00:00
|
|
|
]
|
2020-12-21 16:11:53 +00:00
|
|
|
},
|
|
|
|
{
|
2023-04-25 19:04:36 +00:00
|
|
|
// Debug by attaching to remote Home Assistant server using Remote Python Debugger.
|
2020-12-21 16:11:53 +00:00
|
|
|
// See https://www.home-assistant.io/integrations/debugpy/
|
|
|
|
"name": "Home Assistant: Attach Remote",
|
2024-07-05 12:49:41 +00:00
|
|
|
"type": "debugpy",
|
2020-12-21 16:11:53 +00:00
|
|
|
"request": "attach",
|
2024-07-05 12:49:41 +00:00
|
|
|
"connect": {
|
|
|
|
"port": 5678,
|
|
|
|
"host": "homeassistant.local"
|
|
|
|
},
|
2020-12-21 16:11:53 +00:00
|
|
|
"pathMappings": [
|
|
|
|
{
|
|
|
|
"localRoot": "${workspaceFolder}",
|
|
|
|
"remoteRoot": "/usr/src/homeassistant"
|
|
|
|
}
|
2021-04-14 17:26:37 +00:00
|
|
|
]
|
2020-11-12 14:46:49 +00:00
|
|
|
}
|
|
|
|
]
|
2024-07-05 12:49:41 +00:00
|
|
|
}
|