Skip to content

Commit

Permalink
chore(vscode): add launch options to debug (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokam authored May 15, 2024
1 parent b86d6e3 commit f9f8c52
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// 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": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "/usr/local/python/current/bin/hass",
"args": [
"--config",
"config",
"--debug"
],
"console": "integratedTerminal"
}
]
}
6 changes: 6 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ set -e
cd "$(dirname "$0")/.."

python3 -m pip install --requirement requirements.txt

# Create config dir if not present
if [[ ! -d "${PWD}/config" ]]; then
mkdir -p "${PWD}/config"
hass --config "${PWD}/config" --script ensure_config
fi

0 comments on commit f9f8c52

Please sign in to comment.