-
-
Notifications
You must be signed in to change notification settings - Fork 93
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 #381 from flixlix/refactor-states
refactor: ♻️ restructure code
- Loading branch information
Showing
109 changed files
with
16,937 additions
and
8,165 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 |
---|---|---|
@@ -1,40 +1,42 @@ | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
{ | ||
"name": "Homekit Button Development", | ||
"image": "ghcr.io/ludeeus/devcontainer/generic:latest", | ||
"context": "..", | ||
"remoteUser": "vscode", | ||
"appPort": ["5000:5000", "9123:8123"], | ||
"postCreateCommand": "yarn install && sudo container install", | ||
"runArgs": ["-v", "${localWorkspaceFolder}/.devcontainer/www:/config/www"], | ||
"extensions": [ | ||
"github.vscode-pull-request-github", | ||
"eamodio.gitlens", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"bierner.lit-html", | ||
"runem.lit-plugin", | ||
"davidanson.vscode-markdownlint", | ||
"redhat.vscode-yaml", | ||
"msjsdiag.debugger-for-chrome", | ||
"yzhang.markdown-all-in-one" | ||
"name": "flixlix/power-flow-card-plus", | ||
"image": "nikolaik/python-nodejs", | ||
"postCreateCommand": "scripts/setup", | ||
"forwardPorts": [ | ||
8123 | ||
], | ||
"settings": { | ||
"files.eol": "\n", | ||
"editor.tabSize": 2, | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"markdown.extension.toc.githubCompatibility": true, | ||
"files.watcherExclude": { | ||
"**/.git/objects/**": true, | ||
"**/.git/subtree-cache/**": true, | ||
"**/node_modules/**": true, | ||
"**/.hg/store/**": true, | ||
"**/.rpt2_cache/**": true | ||
"portsAttributes": { | ||
"8123": { | ||
"label": "Home Assistant", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"github.vscode-pull-request-github", | ||
"ryanluker.vscode-coverage-gutters", | ||
"ms-python.vscode-pylance" | ||
], | ||
"settings": { | ||
"files.eol": "\n", | ||
"editor.tabSize": 4, | ||
"python.pythonPath": "/usr/bin/python3", | ||
"python.analysis.autoSearchPaths": false, | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.enabled": true, | ||
"python.formatting.provider": "black", | ||
"python.formatting.blackPath": "/usr/local/py-utils/bin/black", | ||
"editor.formatOnPaste": false, | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
"files.trimTrailingWhitespace": true | ||
} | ||
} | ||
}, | ||
"remoteUser": "vscode", | ||
"features": { | ||
"ghcr.io/devcontainers/features/rust:1": {} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -27,5 +27,4 @@ _site/ | |
|
||
storybook-static | ||
custom-elements.json | ||
package-lock.json | ||
pnpm-lock.yaml |
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 @@ | ||
2023.8.0 |
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,22 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 1, | ||
"key": "assist_pipeline.pipelines", | ||
"data": { | ||
"items": [ | ||
{ | ||
"conversation_engine": "homeassistant", | ||
"conversation_language": "de", | ||
"id": "01hk9y6t5qnrs2dkdd7b8y6h0q", | ||
"language": "de", | ||
"name": "Home Assistant", | ||
"stt_engine": null, | ||
"stt_language": null, | ||
"tts_engine": null, | ||
"tts_language": null, | ||
"tts_voice": null | ||
} | ||
], | ||
"preferred_item": "01hk9y6t5qnrs2dkdd7b8y6h0q" | ||
} | ||
} |
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,122 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 1, | ||
"key": "auth", | ||
"data": { | ||
"users": [ | ||
{ | ||
"id": "24cab0d31ffd4cff8ed6995e6a12ae10", | ||
"group_ids": [ | ||
"system-read-only" | ||
], | ||
"is_owner": false, | ||
"is_active": true, | ||
"name": "Home Assistant Content", | ||
"system_generated": true, | ||
"local_only": false | ||
}, | ||
{ | ||
"id": "4332014890bc4a0695f82506bf9dfac2", | ||
"group_ids": [ | ||
"system-admin" | ||
], | ||
"is_owner": true, | ||
"is_active": true, | ||
"name": "test", | ||
"system_generated": false, | ||
"local_only": false | ||
} | ||
], | ||
"groups": [ | ||
{ | ||
"id": "system-admin", | ||
"name": "Administrators" | ||
}, | ||
{ | ||
"id": "system-users", | ||
"name": "Users" | ||
}, | ||
{ | ||
"id": "system-read-only", | ||
"name": "Read Only" | ||
} | ||
], | ||
"credentials": [ | ||
{ | ||
"id": "5f9f859d87af41aa806d40bcbb211541", | ||
"user_id": "4332014890bc4a0695f82506bf9dfac2", | ||
"auth_provider_type": "homeassistant", | ||
"auth_provider_id": null, | ||
"data": { | ||
"username": "test" | ||
} | ||
} | ||
], | ||
"refresh_tokens": [ | ||
{ | ||
"id": "d052d99a0f684ad39d1ed345f26d7499", | ||
"user_id": "24cab0d31ffd4cff8ed6995e6a12ae10", | ||
"client_id": null, | ||
"client_name": null, | ||
"client_icon": null, | ||
"token_type": "system", | ||
"created_at": "2024-01-04T09:49:54.562090+00:00", | ||
"access_token_expiration": 1800.0, | ||
"token": "e31a536dae98988d3276ec678287103f5262de162896f1a708a50647b042518d7a89e82e6ed36ee915092f31ef9202a1bf8fdd92e4f865ff390e7407e2bfdce1", | ||
"jwt_key": "268d8a4672764a219c7bbc5c0015b7f07f128c5f0252fa5aa29e6fbf6b29f52780ab2baa59f78b00754a77ec3c69263c3bda6c469c2af061b9d4d8df41ff8cc7", | ||
"last_used_at": null, | ||
"last_used_ip": null, | ||
"credential_id": null, | ||
"version": "2023.8.0" | ||
}, | ||
{ | ||
"id": "37f2286e29ee4ad1befb0249921c13a5", | ||
"user_id": "4332014890bc4a0695f82506bf9dfac2", | ||
"client_id": "http://localhost:8123/", | ||
"client_name": null, | ||
"client_icon": null, | ||
"token_type": "normal", | ||
"created_at": "2024-01-04T09:50:54.669577+00:00", | ||
"access_token_expiration": 1800.0, | ||
"token": "3d28c0e53a5543e65b522b6f9364c89b4471439adbd126679c3810a8a589f4c21ef6e3f83cb97324a3de01256ee57ce07ce885be3dd437f1558dfa5171fb5cb9", | ||
"jwt_key": "07d08b02602242fd3c1d6af1a39865028f44112eaf6d8870e3fc36569e7762116e5fdda7dae8c2776a58a15e89c20c004489f9ee0795da459e6779e4d0f350bf", | ||
"last_used_at": "2024-01-04T09:50:54.670126+00:00", | ||
"last_used_ip": "127.0.0.1", | ||
"credential_id": "5f9f859d87af41aa806d40bcbb211541", | ||
"version": "2023.8.0" | ||
}, | ||
{ | ||
"id": "12767b361ea94c4caecfb2e6155b55dc", | ||
"user_id": "4332014890bc4a0695f82506bf9dfac2", | ||
"client_id": "http://localhost:8123/", | ||
"client_name": null, | ||
"client_icon": null, | ||
"token_type": "normal", | ||
"created_at": "2024-01-04T09:51:16.891109+00:00", | ||
"access_token_expiration": 1800.0, | ||
"token": "06feefa3d4dbcf63964405a6374d02cf0b76a42741c2a5933cf559f75a2b76be5cb130536d45d69367b96ba1e94df8adde699cf12db47e67037065be1e2ea273", | ||
"jwt_key": "60b6aa3f49c77cded0081aa4a53106c5b3d07b0cc01c5573705238056458d09651e0c4a0369189f08181c4ba86a5ca6c09225e4351de9a228d895e7eecaef63a", | ||
"last_used_at": "2024-01-04T09:51:16.891691+00:00", | ||
"last_used_ip": "127.0.0.1", | ||
"credential_id": "5f9f859d87af41aa806d40bcbb211541", | ||
"version": "2023.8.0" | ||
}, | ||
{ | ||
"id": "2024d07915ca4fb1a0fc26cf7f9d9c6f", | ||
"user_id": "4332014890bc4a0695f82506bf9dfac2", | ||
"client_id": "http://localhost:8123/", | ||
"client_name": null, | ||
"client_icon": null, | ||
"token_type": "normal", | ||
"created_at": "2024-01-04T09:52:26.816463+00:00", | ||
"access_token_expiration": 1800.0, | ||
"token": "68cddfde5e5ca75090a636bec396b484fb70faf1d476236ed6a42003b522a1db538d9ac6a479e947d9aece82677d3af218d353284fd53f4c50c8071b4d02b448", | ||
"jwt_key": "0e1812da44035cd15cd62b802f1dfdbd66193d7942ab09aabe250b05c63d06bad9669766031eea294560c366c2ad7183f1846bf325fea16df981893a245956ef", | ||
"last_used_at": "2024-01-04T09:52:26.818466+00:00", | ||
"last_used_ip": "127.0.0.1", | ||
"credential_id": "5f9f859d87af41aa806d40bcbb211541", | ||
"version": "2023.8.0" | ||
} | ||
] | ||
} | ||
} |
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,13 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 1, | ||
"key": "auth_provider.homeassistant", | ||
"data": { | ||
"users": [ | ||
{ | ||
"username": "test", | ||
"password": "JDJiJDEyJHBtUVM0OS5HclVkd004MG9QZ0o4ZWVQLkJLQ3BGbmFmVFhhOEVoOGhmVDZsV3BMN29sN1RT" | ||
} | ||
] | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 1, | ||
"key": "core.analytics", | ||
"data": { | ||
"onboarded": true, | ||
"preferences": {}, | ||
"uuid": null | ||
} | ||
} |
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,27 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 3, | ||
"key": "core.area_registry", | ||
"data": { | ||
"areas": [ | ||
{ | ||
"aliases": [], | ||
"name": "Wohnzimmer", | ||
"id": "wohnzimmer", | ||
"picture": null | ||
}, | ||
{ | ||
"aliases": [], | ||
"name": "Küche", | ||
"id": "kuche", | ||
"picture": null | ||
}, | ||
{ | ||
"aliases": [], | ||
"name": "Schlafzimmer", | ||
"id": "schlafzimmer", | ||
"picture": null | ||
} | ||
] | ||
} | ||
} |
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,18 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 3, | ||
"key": "core.config", | ||
"data": { | ||
"latitude": 52.3769091109999, | ||
"longitude": 4.896898119902229, | ||
"elevation": 0, | ||
"unit_system_v2": "metric", | ||
"location_name": "Home", | ||
"time_zone": "Europe/Berlin", | ||
"external_url": null, | ||
"internal_url": null, | ||
"currency": "EUR", | ||
"country": "DE", | ||
"language": "de" | ||
} | ||
} |
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,50 @@ | ||
{ | ||
"version": 1, | ||
"minor_version": 1, | ||
"key": "core.config_entries", | ||
"data": { | ||
"entries": [ | ||
{ | ||
"entry_id": "adad8618444249dc30da8bcab2ab2e1d", | ||
"version": 1, | ||
"domain": "radio_browser", | ||
"title": "Radio Browser", | ||
"data": {}, | ||
"options": {}, | ||
"pref_disable_new_entities": false, | ||
"pref_disable_polling": false, | ||
"source": "onboarding", | ||
"unique_id": null, | ||
"disabled_by": null | ||
}, | ||
{ | ||
"entry_id": "68b9654fad0b8c7ab1451271a3e5ec33", | ||
"version": 1, | ||
"domain": "met", | ||
"title": "Home", | ||
"data": { | ||
"track_home": true | ||
}, | ||
"options": {}, | ||
"pref_disable_new_entities": false, | ||
"pref_disable_polling": false, | ||
"source": "onboarding", | ||
"unique_id": null, | ||
"disabled_by": null | ||
}, | ||
{ | ||
"entry_id": "6d4b1a78cd50589fc2fdd3113437be9d", | ||
"version": 1, | ||
"domain": "sun", | ||
"title": "Sun", | ||
"data": {}, | ||
"options": {}, | ||
"pref_disable_new_entities": false, | ||
"pref_disable_polling": false, | ||
"source": "import", | ||
"unique_id": null, | ||
"disabled_by": null | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.