Skip to content

Commit

Permalink
created SETUP_DEVENV.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rine77 committed Dec 11, 2024
1 parent 8edd40c commit 6757b4d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Home Assistant",
"type": "debugpy",
"request": "launch",
"module": "homeassistant", // Führt `python -m homeassistant` aus
"module": "homeassistant",
"args": ["--config", "/home/rine/Projekte/homeassistant/core/config", "--debug"],
"console": "integratedTerminal",
"justMyCode": false
Expand Down
27 changes: 27 additions & 0 deletions SETUP_DEVENV.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# VS Code
## this guide shall help creating a local dev environment with vscode

* install VScode
> $> yay -S code
* create ~/projects folder
> $> mkdir projects && cd projects
* clone git repos
> $> git clone [email protected]:rine77/homeassistantedupage.git
>
> $> git clone [email protected]:home-assistant/core.git
* open VScode
> $> cd homeassistantedupage
>
> $> code .
* press SHIFT+CTRL+P
* type "Python: Select Interpreter" and choose
* "Create Virtual Environment..."
* "Venv"
* "Create"
* choose at least Python 3.12.xxx
* check args in $projects/homeassistantedupage/.vscode/launch.json it should match your local directory
* open terminal in vscode and install python module homeassistant
> $> source ~projects/homeassistantedupage/.venv/bin/activate
>
> $> pip install homeassistant
* now start your debug instance with pressing F5

0 comments on commit 6757b4d

Please sign in to comment.