Trying to setup dev container

This commit is contained in:
Constantin Pascal
2025-12-30 17:25:05 +02:00
parent 7cfc1c56ec
commit 3266ef8a52
14 changed files with 38 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"name": "My HA Component Dev",
// Use a simple Python image
"image": "mcr.microsoft.com/devcontainers/python:3.12",
// Forward HA port to your Mac
"forwardPorts": [8123],
// Install Home Assistant when container is created
"postCreateCommand": "pip install homeassistant",
// Mount your local folders into container
"mounts": [
"source=${localWorkspaceFolder}/custom_components,target=/config/custom_components,type=bind",
"source=${localWorkspaceFolder}/config,target=/config,type=bind"
],
// Work from this directory
"workspaceFolder": "/workspace",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind"
}