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"
}
+8
View File
@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+8
View File
@@ -0,0 +1,8 @@
# Minimal configuration for development
default_config:
logger:
default: info
logs:
custom_components.your_component: debug
homeassistant.core: debug