Trying to setup dev container
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Generated
+8
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
# Minimal configuration for development
|
||||
default_config:
|
||||
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
custom_components.your_component: debug
|
||||
homeassistant.core: debug
|
||||
Reference in New Issue
Block a user