-
Notifications
You must be signed in to change notification settings - Fork 9
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 #1 from cdnninja/corrections
fix: add translation file
- Loading branch information
Showing
11 changed files
with
163 additions
and
91 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,62 +1,62 @@ | ||
--- | ||
ci: | ||
autoupdate_commit_msg: "chore: pre-commit autoupdate" | ||
autoupdate_commit_msg: "chore: pre-commit autoupdate" | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.3 | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- id: ruff-format | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
args: | ||
- --ignore-words-list=fro,hass | ||
- --skip="./.*,*.csv,*.json,*.ambr" | ||
- --quiet-level=2 | ||
exclude_types: [csv, json] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-executables-have-shebangs | ||
stages: [manual] | ||
- id: check-json | ||
exclude: (.vscode|.devcontainer) | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.1 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.35.1 | ||
hooks: | ||
- id: yamllint | ||
exclude: (.github|.vscode|.devcontainer) | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/cdce8p/python-typing-update | ||
rev: v0.6.0 | ||
hooks: | ||
# Run `python-typing-update` hook manually from time to time | ||
# to update python typing syntax. | ||
# Will require manual work, before submitting changes! | ||
# pre-commit run --hook-stage manual python-typing-update --all-files | ||
- id: python-typing-update | ||
stages: [manual] | ||
args: | ||
- --py311-plus | ||
- --force | ||
- --keep-updates | ||
files: ^(/.+)?[^/]+\.py$ | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.9.0 | ||
hooks: | ||
- id: mypy | ||
args: [--strict, --ignore-missing-imports] | ||
files: ^(/.+)?[^/]+\.py$ | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.3 | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- id: ruff-format | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
args: | ||
- --ignore-words-list=fro,hass | ||
- --skip="./.*,*.csv,*.json,*.ambr" | ||
- --quiet-level=2 | ||
exclude_types: [csv, json] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-executables-have-shebangs | ||
stages: [manual] | ||
- id: check-json | ||
exclude: (.vscode|.devcontainer) | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.1 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.35.1 | ||
hooks: | ||
- id: yamllint | ||
exclude: (.github|.vscode|.devcontainer) | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/cdce8p/python-typing-update | ||
rev: v0.6.0 | ||
hooks: | ||
# Run `python-typing-update` hook manually from time to time | ||
# to update python typing syntax. | ||
# Will require manual work, before submitting changes! | ||
# pre-commit run --hook-stage manual python-typing-update --all-files | ||
- id: python-typing-update | ||
stages: [manual] | ||
args: | ||
- --py311-plus | ||
- --force | ||
- --keep-updates | ||
files: ^(/.+)?[^/]+\.py$ | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.9.0 | ||
hooks: | ||
- id: mypy | ||
args: [--strict, --ignore-missing-imports] | ||
files: ^(/.+)?[^/]+\.py$ |
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,2 +1,3 @@ | ||
# yoto_ha | ||
|
||
Home Assistant Integration for Yoto |
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
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
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
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,7 +1,7 @@ | ||
update: | ||
fields: | ||
device_id: | ||
update: | ||
fields: | ||
device_id: | ||
required: false | ||
selector: | ||
device: | ||
integration: yoto | ||
selector: | ||
device: | ||
integration: yoto |
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,33 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"user": { | ||
"data": { | ||
"username": "[%key:common::config_flow::data::username%]", | ||
"password": "[%key:common::config_flow::data::password%]" | ||
} | ||
}, | ||
"reauth_confirm": { | ||
"title": "[%key:component::yoto::config::step::reauth_confirm::title%]", | ||
"description": "[%key:component::yoto::config::step::reauth_confirm::description%]" | ||
} | ||
}, | ||
"error": { | ||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]", | ||
"unknown": "[%key:common::config_flow::error::unknown%]" | ||
}, | ||
"abort": { | ||
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]", | ||
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]" | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"data": { | ||
"scan_interval": "[%key:component::yoto::options::step::init::data::scan_interval%]" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,48 @@ | ||
{ | ||
"title": "Yoto", | ||
"config": { | ||
"step": { | ||
"user": { | ||
"title": "Yoto - Authentication", | ||
"description": "Set up your Yoto to integrate with Home Assistant.", | ||
"data": { | ||
"username": "Username", | ||
"password": "Password" | ||
} | ||
}, | ||
"reauth_confirm": { | ||
"title": "Yoto - Reauthentication", | ||
"description": "Your account is unable to authenticate. Click Submit to re-setup." | ||
} | ||
}, | ||
"abort": { | ||
"already_configured": "Device is already configured" | ||
}, | ||
"error": { | ||
"invalid_auth": "Login failed into Yoto Servers. Please use official app to logout and log back in and try again!", | ||
"unknown": "Unexpected error" | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"title": "Yoto - Configuration", | ||
"data": { | ||
"scan_interval": "Scan Interval (min)" | ||
} | ||
} | ||
} | ||
}, | ||
"services": { | ||
"update": { | ||
"name": "Update", | ||
"description": "Update player data from service cache", | ||
"fields": { | ||
"device_id": { | ||
"name": "Player", | ||
"description": "Target Player" | ||
} | ||
} | ||
} | ||
} | ||
} |