forked from rogro82/hass-variables
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from iprak/custom-domain
Support for custom domain
- Loading branch information
Showing
11 changed files
with
269 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#Limited configuration instead of default_config | ||
#https://github.com/home-assistant/core/tree/dev/homeassistant/components/default_config | ||
automation: | ||
frontend: | ||
history: | ||
logbook: | ||
|
||
homeassistant: | ||
name: Home | ||
|
||
variable: | ||
test_sensor: | ||
value: 0 | ||
restore: true | ||
domain: sensor | ||
|
||
test_counter: | ||
value: 0 | ||
attributes: | ||
icon: mdi:alarm | ||
|
||
logger: | ||
default: info | ||
logs: | ||
custom_components.variable: debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "Home Assistant Custom Component Dev", | ||
"context": "..", | ||
"image": "ghcr.io/ludeeus/devcontainer/integration:latest", | ||
"appPort": "9123:8123", | ||
"postCreateCommand": "container install && pip install --upgrade pip && pip install --ignore-installed -r requirements.txt", | ||
"extensions": [ | ||
"ms-python.python", | ||
"github.vscode-pull-request-github", | ||
"ms-python.vscode-pylance", | ||
"spmeesseman.vscode-taskexplorer" | ||
], | ||
"settings": { | ||
"files.eol": "\n", | ||
"editor.tabSize": 4, | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"python.pythonPath": "/usr/local/python/bin/python", | ||
"python.analysis.autoSearchPaths": false, | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.enabled": true, | ||
"python.linting.pylintArgs": [ | ||
"--disable", | ||
"import-error" | ||
], | ||
"python.formatting.provider": "black", | ||
"python.testing.pytestArgs": [ | ||
"--no-cov" | ||
], | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* text eol=lf | ||
*.py whitespace=error | ||
|
||
*.ico binary | ||
*.jpg binary | ||
*.png binary | ||
*.zip binary | ||
*.mp3 binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"python.formatting.provider": "black", | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnSave": true, | ||
"files.trimTrailingWhitespace": true, | ||
"git.ignoreLimitWarning": true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Run Home Assistant on port 9123", | ||
"type": "shell", | ||
"command": "container start", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Run Home Assistant configuration against /config", | ||
"type": "shell", | ||
"command": "container check", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Upgrade Home Assistant to latest dev", | ||
"type": "shell", | ||
"command": "container install", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "Install a specific version of Home Assistant", | ||
"type": "shell", | ||
"command": "container set-version", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Dummy __init__.py to make imports with homeassistant-custom-component work.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.