Improvements to the development environment (#383)
* Update Home Assistant dev version in requirements_dev.txt * Avoid "Error starting FFmpeg" error in VSCode dev container logs * Add "editor.formatOnSaveMode": "modifications" to .vscode/settings.json
This commit is contained in:
committed by
GitHub
parent
dce8fa2ed6
commit
91e39f885f
2
.devcontainer/Dockerfile
Normal file
2
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM mcr.microsoft.com/devcontainers/python:1-3.11
|
||||
RUN apt update && apt install -y ffmpeg
|
||||
@@ -1,8 +1,5 @@
|
||||
default_config:
|
||||
|
||||
# ffmeg
|
||||
ffmpeg:
|
||||
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
|
||||
// "image": "ghcr.io/ludeeus/devcontainer/integration:latest",
|
||||
{
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"name": "Versatile Thermostat integration",
|
||||
"appPort": [
|
||||
"8123:8123"
|
||||
|
||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||
"editor.formatOnSave": true
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnSaveMode": "modifications"
|
||||
},
|
||||
"pylint.lintOnChange": false,
|
||||
"files.associations": {
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
homeassistant==2023.12.1
|
||||
ffmpeg
|
||||
homeassistant==2024.2.1
|
||||
|
||||
Reference in New Issue
Block a user