-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'corrections' of https://github.com/cdnninja/yoto_ha int…
…o corrections
- Loading branch information
Showing
8 changed files
with
115 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Config flow for Hyundai / Kia Connect integration.""" | ||
|
||
from __future__ import annotations | ||
|
||
import hashlib | ||
|
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,48 +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" | ||
} | ||
"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." | ||
} | ||
}, | ||
"options":{ | ||
"step":{ | ||
"init":{ | ||
"title":"Yoto - Configuration", | ||
"data":{ | ||
"scan_interval":"Scan Interval (min)" | ||
} | ||
} | ||
} | ||
"abort": { | ||
"already_configured": "Device is already configured" | ||
}, | ||
"services": { | ||
"update": { | ||
"name": "Update", | ||
"description": "Update player data from service cache", | ||
"fields": { | ||
"device_id": { | ||
"name": "Player", | ||
"description": "Target Player" | ||
} | ||
} | ||
} | ||
"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" | ||
} | ||
} | ||
} | ||
} | ||
} |