Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created SETUP_DEVENV.md #59

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading