From 6757b4df0d3c4aab87fd53fc742a1cb8f634895e Mon Sep 17 00:00:00 2001 From: Rene Lange Date: Wed, 11 Dec 2024 10:17:29 +0100 Subject: [PATCH] created SETUP_DEVENV.md --- .vscode/launch.json | 2 +- SETUP_DEVENV.md | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 SETUP_DEVENV.md diff --git a/.vscode/launch.json b/.vscode/launch.json index 6d53d01..03aef83 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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 diff --git a/SETUP_DEVENV.md b/SETUP_DEVENV.md new file mode 100644 index 0000000..3ac747d --- /dev/null +++ b/SETUP_DEVENV.md @@ -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 git@github.com:rine77/homeassistantedupage.git +> +> $> git clone git@github.com: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