Skip to content

Commit

Permalink
Merge pull request #78 from alandtse/dev
Browse files Browse the repository at this point in the history
2021-10-19
  • Loading branch information
alandtse authored Oct 21, 2021
2 parents d300e61 + 85efbd9 commit b397465
Show file tree
Hide file tree
Showing 7 changed files with 176 additions and 104 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,37 @@ jobs:
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v2"
- name: Setup Python
uses: "actions/setup-python@v1"
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install poetry
run: python3 -m pip install poetry
- name: Install requirements
run: poetry install
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
#----------------------------------------------
# install your root project, if required
#----------------------------------------------
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: |
poetry run pytest \
Expand Down
37 changes: 30 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,37 @@ jobs:
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v2"
- name: Setup Python
uses: "actions/setup-python@v1"
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install poetry
run: python3 -m pip install poetry
- name: Install requirements
run: poetry install
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
#----------------------------------------------
# install your root project, if required
#----------------------------------------------
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: |
poetry run pytest \
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ jobs:
# - name: Move new translations
# run: |
# cp /tmp/lokalise/locale/* /home/runner/work/alexa_media_player/alexa_media_player/custom_components/alexa_media/translations/
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-semantic-release
- name: Setup Git
run: |
git config --global user.name "semantic-release"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tesla_custom/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://github.com/alandtse/tesla",
"issue_tracker": "https://github.com/alandtse/tesla/issues",
"requirements": ["teslajsonpy==1.1.2"],
"requirements": ["teslajsonpy==1.2.0"],
"codeowners": ["@alandtse"],
"dependencies": ["http"],
"dhcp": [
Expand Down
35 changes: 35 additions & 0 deletions custom_components/tesla_custom/translations/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"config": {
"abort": {
"already_configured": "\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u3059\u3067\u306b\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059",
"reauth_successful": "\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u3059\u3067\u306b\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059"
},
"error": {
"already_configured": "\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u3059\u3067\u306b\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059",
"cannot_connect": "\u63a5\u7d9a\u306b\u5931\u6557\u3057\u305f",
"invalid_auth": "\u7121\u52b9\u306a\u8a8d\u8a3c"
},
"step": {
"user": {
"data": {
"mfa": "\u004d\u0046\u0041\u30b3\u30fc\u30c9\uff08\u4efb\u610f\uff09",
"password": "\u30d1\u30b9\u30ef\u30fc\u30c9",
"username": "\u0045\u30e1\u30fc\u30eb",
"token": "\u30c8\u30fc\u30af\u30f3\u306e\u66f4\u65b0"
},
"description": "\u0069\u004f\u0053\u3067\u306f\u300c\u0041\u0075\u0074\u0068\u0041\u0070\u0070\u0066\u006f\u0072\u0020\u0054\u0065\u0073\u006c\u0061\u300d\u3092\u4f7f\u7528\u3057\u3001\u0041\u006e\u0064\u0072\u006f\u0069\u0064\u3067\u306f\u300c\u0054\u0065\u0073\u006c\u0061\u0054\u006f\u006b\u0065\u006e\u0073\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\r\n\u66f4\u65b0\u30c8\u30fc\u30af\u30f3\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306b\u5165\u529b\u3057\u307e\u3059",
"title": "\u30c6\u30b9\u30e9\u002d\u69cb\u6210"
}
}
},
"options": {
"step": {
"init": {
"data": {
"enable_wake_on_start": "\u8d77\u52d5\u6642\u306b\u8eca\u3092\u5f37\u5236\u7684\u306b\u30a6\u30a7\u30a4\u30af\u30a2\u30c3\u30d7\u3055\u305b\u307e\u3059",
"scan_interval": "\u30dd\u30fc\u30ea\u30f3\u30b0\u9593\u306e\u79d2\u6570"
}
}
}
}
}
Loading

0 comments on commit b397465

Please sign in to comment.