update development files

This commit is contained in:
Yordan Suarez
2021-08-09 23:21:54 -04:00
parent 68b063548d
commit aeb6b2d634
3 changed files with 27 additions and 50 deletions

View File

@@ -1,18 +1,24 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details. // See https://aka.ms/vscode-remote/devcontainer.json for format details.
{ {
"image": "ludeeus/container:integration-debian",
"name": "Blueprint integration development",
"context": "..", "context": "..",
"dockerFile": "Dockerfile", "appPort": [
"appPort": "8124:8123", "9123:8123"
"runArgs": [
"-e",
"GIT_EDTIOR='code --wait'"
], ],
"postCreateCommand": "container install",
"extensions": [ "extensions": [
"ms-python.python", "ms-python.python",
"tabnine.tabnine-vscode" "github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance"
], ],
"settings": { "settings": {
"python.pythonPath": "/usr/local/bin/python", "files.eol": "\n",
"editor.tabSize": 4,
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"python.linting.pylintEnabled": true, "python.linting.pylintEnabled": true,
"python.linting.enabled": true, "python.linting.enabled": true,
"python.formatting.provider": "black", "python.formatting.provider": "black",

View File

@@ -1,4 +1,7 @@
{ {
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.pythonPath": "/usr/local/bin/python",
"files.associations": { "files.associations": {
"*.yaml": "home-assistant" "*.yaml": "home-assistant"
} }

52
.vscode/tasks.json vendored
View File

@@ -2,59 +2,27 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Start Home Assistant on port 8124", "label": "Run Home Assistant on port 9123",
"type": "shell", "type": "shell",
"command": "source .devcontainer/custom_component_helper", "command": "container start",
"group": { "problemMatcher": []
"kind": "test",
"isDefault": true,
},
"presentation": {
"reveal": "always",
"panel": "new"
}, },
{
"label": "Run Home Assistant configuration against /config",
"type": "shell",
"command": "container check",
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "Upgrade Home Assistant to latest dev", "label": "Upgrade Home Assistant to latest dev",
"type": "shell", "type": "shell",
"command": "source .devcontainer/custom_component_helper && UpdgradeHomeAssistantDev", "command": "container install",
"group": {
"kind": "test",
"isDefault": true,
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "Set Home Assistant Version", "label": "Install a specific version of Home Assistant",
"type": "shell", "type": "shell",
"command": "source .devcontainer/custom_component_helper && SetHomeAssistantVersion", "command": "container set-version",
"group": {
"kind": "test",
"isDefault": true,
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Home Assistant Config Check",
"type": "shell",
"command": "source .devcontainer/custom_component_helper && HomeAssistantConfigCheck",
"group": {
"kind": "test",
"isDefault": true,
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [] "problemMatcher": []
} }
] ]