Skip to content

Commit

Permalink
Improve devcontainer environment (blakeblackshear#287)
Browse files Browse the repository at this point in the history
* Improve devcontainer.

* Codereview fix.
  • Loading branch information
dermotduffy authored Jun 18, 2022
1 parent 0218f56 commit ddefe68
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .devcontainer/config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ homeassistant:
unit_system: metric
currency: USD
time_zone: "America/Los_Angeles"
auth_providers:
- type: trusted_networks
trusted_networks:
- 0.0.0.0/0
trusted_users:
0.0.0.0/0: 1141ee80e0a647c1a4687d0b7631a019
allow_bypass_login: true
- type: homeassistant

demo:
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 1,
"minor_version": 1,
"key": "frontend.user_data_1141ee80e0a647c1a4687d0b7631a019",
"data": {
"language": {
"language": "en",
"number_format": "language",
"time_format": "language"
},
"core": {
"showAdvanced": true
}
}
}
43 changes: 43 additions & 0 deletions .devcontainer/config/preconfig/.storage/lovelace
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": 1,
"minor_version": 1,
"key": "lovelace",
"data": {
"config": {
"title": "Frigate Integration",
"views": [
{
"theme": "Backend-selected",
"title": "Integration",
"path": "integration",
"badges": [],
"cards": [
{
"type": "custom:auto-entities",
"filter": {
"include": [
{
"integration": "frigate"
}
]
},
"sort": {
"method": "friendly_name"
},
"card": {
"type": "custom:auto-entities",
"card": {
"type": "entities"
},
"filter": {
"include": [],
"exclude": []
}
}
}
]
}
]
}
}
}
14 changes: 14 additions & 0 deletions .devcontainer/config/preconfig/.storage/lovelace_resources
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"minor_version": 1,
"key": "lovelace_resources",
"data": {
"items": [
{
"url": "https://cdn.jsdelivr.net/gh/thomasloven/[email protected]/auto-entities.js",
"type": "module",
"id": "00c459541bac4290af01c51bf9c06ba2"
}
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ctags.tmp
.vscode/*
!.vscode/cSpell.json
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/tasks.json
.env

Expand Down
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against Home Assistant",
"url": "http://localhost:48123",
"resolveSourceMapLocations": ["!**"]
}
]
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
volumes:
- /etc/localtime:/etc/localtime:ro
- .devcontainer/preconfig.sh:/etc/cont-init.d/preconfig.sh:ro
- .devcontainer/config/preconfig:/config/preconfig:ro
- .devcontainer/config/preconfig:/config/preconfig
- .devcontainer/config/configuration.yaml:/config/configuration.yaml:ro
- .devcontainer/config/www:/config/www
- ./custom_components:/config/custom_components:ro
Expand Down

0 comments on commit ddefe68

Please sign in to comment.