Skip to content

Commit 100ae1e

Browse files
authored
build: Bump dev to Home Assistant 2023 and python 3.12 (alandtse#892)
1 parent 89c0fe7 commit 100ae1e

File tree

7 files changed

+1563
-912
lines changed

7 files changed

+1563
-912
lines changed

.devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Tesla Custom Component",
3-
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12",
44
"postCreateCommand": "sudo scripts/setup",
55
"appPort": ["9123:8123"],
66
"customizations": {

.github/workflows/pull.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
steps:
3737
- name: Check out code from GitHub
3838
uses: "actions/checkout@v2"
39-
- name: Set up Python 3.10
39+
- name: Set up Python 3.12
4040
uses: actions/setup-python@v2
4141
with:
42-
python-version: "3.10"
42+
python-version: "3.12"
4343
- name: Install Poetry
4444
uses: snok/install-poetry@v1
4545
with:

.github/workflows/push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
steps:
4747
- name: Check out code from GitHub
4848
uses: "actions/checkout@v2"
49-
- name: Set up Python 3.10
49+
- name: Set up Python 3.12
5050
uses: actions/setup-python@v2
5151
with:
52-
python-version: "3.10"
52+
python-version: "3.12"
5353
- name: Install Poetry
5454
uses: snok/install-poetry@v1
5555
with:

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ repos:
7171
- id: prospector
7272
exclude: ^(tests)/.+\.py$
7373
- repo: https://github.com/PyCQA/bandit
74-
rev: 1.7.7
74+
rev: 1.7.8
7575
hooks:
7676
- id: bandit
7777
args:

poetry.lock

+1,551-901
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ authors = ["Alan D. Tse <[email protected]>"]
66
license = "Apache-2.0"
77

88
[tool.poetry.dependencies]
9-
python = "^3.10"
9+
python = ">=3.12,<3.13"
1010
teslajsonpy = "3.10.1"
11+
async-timeout = ">=4.0.0"
1112

1213

1314
[tool.poetry.group.dev.dependencies]
14-
homeassistant = ">=2023.4.0"
15-
pytest-homeassistant-custom-component = ">=0.13.1"
15+
homeassistant = ">=2024.3.0"
16+
pytest-homeassistant-custom-component = ">=0.13.107"
1617
bandit = ">=1.7.0"
1718
black = { version = ">=21.12b0", allow-prereleases = true }
1819
mypy = ">=0.812"
@@ -39,7 +40,7 @@ commit_subject = "[skip ci] {version}"
3940

4041
[tool.black]
4142
line-length = 88
42-
target-version = ['py310']
43+
target-version = ['py312']
4344
exclude = '''
4445
4546
(

scripts/setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ poetry config virtualenvs.create false
1010
poetry install --no-interaction
1111

1212
# Keep this inline with any requirements that are in manifest.json
13-
pip install git+https://github.com/zabuldon/teslajsonpy.git@dev#teslajsonpy==3.9.11
13+
pip install git+https://github.com/zabuldon/teslajsonpy.git@dev#teslajsonpy==3.10.1
1414
pre-commit install --install-hooks

0 commit comments

Comments
 (0)