Skip to content

Commit b80403b

Browse files
committed
Merge branch 'refs/heads/2025.02.1'
# Conflicts: # .github/workflows/sentry.yaml # build.yaml
2 parents e39265c + 5cd7f6f commit b80403b

File tree

3,941 files changed

+5595
-3050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,941 files changed

+5595
-3050
lines changed

.devcontainer/devcontainer.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Supervisor dev",
3-
"image": "ghcr.io/home-assistant/devcontainer:supervisor",
3+
"image": "ghcr.io/home-assistant/devcontainer:2-supervisor",
44
"containerEnv": {
55
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
66
},
@@ -44,5 +44,8 @@
4444
}
4545
}
4646
},
47-
"mounts": ["type=volume,target=/var/lib/docker"]
47+
"mounts": [
48+
"type=volume,target=/var/lib/docker",
49+
"type=volume,target=/mnt/supervisor"
50+
]
4851
}

.github/workflows/builder.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on:
3333
- setup.py
3434

3535
env:
36-
DEFAULT_PYTHON: "3.12"
36+
DEFAULT_PYTHON: "3.13"
3737
BUILD_NAME: supervisor
3838
BUILD_TYPE: supervisor
3939

@@ -125,13 +125,13 @@ jobs:
125125

126126
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
127127
if: needs.init.outputs.publish == 'true'
128-
uses: actions/setup-python@v5.3.0
128+
uses: actions/setup-python@v5.4.0
129129
with:
130130
python-version: ${{ env.DEFAULT_PYTHON }}
131131

132132
- name: Install Cosign
133133
if: needs.init.outputs.publish == 'true'
134-
uses: sigstore/cosign-installer@v3.7.0
134+
uses: sigstore/cosign-installer@v3.8.0
135135
with:
136136
cosign-release: "v2.4.0"
137137

.github/workflows/ci.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
pull_request: ~
99

1010
env:
11-
DEFAULT_PYTHON: "3.12"
11+
DEFAULT_PYTHON: "3.13"
1212
PRE_COMMIT_CACHE: ~/.cache/pre-commit
1313

1414
concurrency:
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/[email protected]
2929
- name: Set up Python
3030
id: python
31-
uses: actions/setup-python@v5.3.0
31+
uses: actions/setup-python@v5.4.0
3232
with:
3333
python-version: ${{ env.DEFAULT_PYTHON }}
3434
- name: Restore Python virtual environment
@@ -69,7 +69,7 @@ jobs:
6969
- name: Check out code from GitHub
7070
uses: actions/[email protected]
7171
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
72-
uses: actions/setup-python@v5.3.0
72+
uses: actions/setup-python@v5.4.0
7373
id: python
7474
with:
7575
python-version: ${{ needs.prepare.outputs.python-version }}
@@ -112,7 +112,7 @@ jobs:
112112
- name: Check out code from GitHub
113113
uses: actions/[email protected]
114114
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
115-
uses: actions/setup-python@v5.3.0
115+
uses: actions/setup-python@v5.4.0
116116
id: python
117117
with:
118118
python-version: ${{ needs.prepare.outputs.python-version }}
@@ -170,7 +170,7 @@ jobs:
170170
- name: Check out code from GitHub
171171
uses: actions/[email protected]
172172
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
173-
uses: actions/setup-python@v5.3.0
173+
uses: actions/setup-python@v5.4.0
174174
id: python
175175
with:
176176
python-version: ${{ needs.prepare.outputs.python-version }}
@@ -214,7 +214,7 @@ jobs:
214214
- name: Check out code from GitHub
215215
uses: actions/[email protected]
216216
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
217-
uses: actions/setup-python@v5.3.0
217+
uses: actions/setup-python@v5.4.0
218218
id: python
219219
with:
220220
python-version: ${{ needs.prepare.outputs.python-version }}
@@ -258,7 +258,7 @@ jobs:
258258
- name: Check out code from GitHub
259259
uses: actions/[email protected]
260260
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
261-
uses: actions/setup-python@v5.3.0
261+
uses: actions/setup-python@v5.4.0
262262
id: python
263263
with:
264264
python-version: ${{ needs.prepare.outputs.python-version }}
@@ -294,12 +294,12 @@ jobs:
294294
- name: Check out code from GitHub
295295
uses: actions/[email protected]
296296
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
297-
uses: actions/setup-python@v5.3.0
297+
uses: actions/setup-python@v5.4.0
298298
id: python
299299
with:
300300
python-version: ${{ needs.prepare.outputs.python-version }}
301301
- name: Install Cosign
302-
uses: sigstore/cosign-installer@v3.7.0
302+
uses: sigstore/cosign-installer@v3.8.0
303303
with:
304304
cosign-release: "v2.4.0"
305305
- name: Restore Python virtual environment
@@ -353,7 +353,7 @@ jobs:
353353
- name: Check out code from GitHub
354354
uses: actions/[email protected]
355355
- name: Set up Python ${{ needs.prepare.outputs.python-version }}
356-
uses: actions/setup-python@v5.3.0
356+
uses: actions/setup-python@v5.4.0
357357
id: python
358358
with:
359359
python-version: ${{ needs.prepare.outputs.python-version }}
@@ -378,4 +378,4 @@ jobs:
378378
coverage report
379379
coverage xml
380380
- name: Upload coverage to Codecov
381-
uses: codecov/codecov-action@v5.1.2
381+
uses: codecov/codecov-action@v5.3.1

.github/workflows/sentry.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Check out code from GitHub
1313
uses: actions/[email protected]
1414
- name: Sentry Release
15-
uses: getsentry/action-release@v1.9.0
15+
uses: getsentry/action-release@v1.10.4
1616
if: ${{ secrets.SENTRY_ORG != '' }}
1717
env:
1818
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

.github/workflows/stale.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
stale:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/stale@v9.0.0
12+
- uses: actions/stale@v9.1.0
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
days-before-stale: 30

.ha-frontend-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20241127.8
1+
20250205.0

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.5.7
3+
rev: v0.9.1
44
hooks:
55
- id: ruff
66
args:
77
- --fix
88
- id: ruff-format
99
files: ^((supervisor|tests)/.+)?[^/]+\.py$
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.5.0
11+
rev: v5.0.0
1212
hooks:
1313
- id: check-executables-have-shebangs
1414
stages: [manual]

build.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
image: ghcr.nju.edu.cn/home-assistant/{arch}-hassio-supervisor
22
build_from:
3-
aarch64: ghcr.nju.edu.cn/home-assistant/aarch64-base-python:3.12-alpine3.20
4-
armhf: ghcr.nju.edu.cn/home-assistant/armhf-base-python:3.12-alpine3.20
5-
armv7: ghcr.nju.edu.cn/home-assistant/armv7-base-python:3.12-alpine3.20
6-
amd64: ghcr.nju.edu.cn/home-assistant/amd64-base-python:3.12-alpine3.20
7-
i386: ghcr.nju.edu.cn/home-assistant/i386-base-python:3.12-alpine3.20
3+
aarch64: ghcr.nju.edu.cn/home-assistant/aarch64-base-python:3.13-alpine3.21
4+
armhf: ghcr.nju.edu.cn/home-assistant/armhf-base-python:3.13-alpine3.21
5+
armv7: ghcr.nju.edu.cn/home-assistant/armv7-base-python:3.13-alpine3.21
6+
amd64: ghcr.nju.edu.cn/home-assistant/amd64-base-python:3.13-alpine3.21
7+
i386: ghcr.nju.edu.cn/home-assistant/i386-base-python:3.13-alpine3.21
88
codenotary:
99
1010
base_image: [email protected]

pyproject.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ authors = [
1212
{ name = "The Home Assistant Authors", email = "[email protected]" },
1313
]
1414
keywords = ["docker", "home-assistant", "api"]
15-
requires-python = ">=3.12.0"
15+
requires-python = ">=3.13.0"
1616

1717
[project.urls]
1818
"Homepage" = "https://www.home-assistant.io/"
@@ -31,7 +31,7 @@ include-package-data = true
3131
include = ["supervisor*"]
3232

3333
[tool.pylint.MAIN]
34-
py-version = "3.12"
34+
py-version = "3.13"
3535
# Use a conservative default here; 2 should speed up most setups and not hurt
3636
# any too bad. Override on command line as appropriate.
3737
jobs = 2
@@ -147,7 +147,7 @@ disable = [
147147
# "pointless-statement", # B018, ruff catches new occurrences, needs more work
148148
"raise-missing-from", # TRY200
149149
# "redefined-builtin", # A001, ruff is way more stricter, needs work
150-
"try-except-raise", # TRY302
150+
"try-except-raise", # TRY203
151151
"unused-argument", # ARG001, we don't use it
152152
"unused-format-string-argument", #F507
153153
"unused-format-string-key", # F504
@@ -223,6 +223,7 @@ testpaths = ["tests"]
223223
norecursedirs = [".git"]
224224
log_format = "%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(name)s:%(filename)s:%(lineno)s %(message)s"
225225
log_date_format = "%Y-%m-%d %H:%M:%S"
226+
asyncio_default_fixture_loop_scope = "function"
226227
asyncio_mode = "auto"
227228
filterwarnings = [
228229
"error",
@@ -289,7 +290,7 @@ lint.select = [
289290
"T20", # flake8-print
290291
"TID251", # Banned imports
291292
"TRY004", # Prefer TypeError exception for invalid type
292-
"TRY302", # Remove exception handler; error is immediately re-raised
293+
"TRY203", # Remove exception handler; error is immediately re-raised
293294
"UP", # pyupgrade
294295
"W", # pycodestyle
295296
]

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
aiodns==3.2.0
2-
aiohttp==3.11.11
2+
aiohttp==3.11.12
33
atomicwrites-homeassistant==1.4.1
4-
attrs==24.3.0
4+
attrs==25.1.0
55
awesomeversion==24.6.0
66
brotli==1.1.0
77
ciso8601==2.3.2
@@ -20,10 +20,10 @@ pulsectl==24.12.0
2020
pyudev==0.24.3
2121
PyYAML==6.0.2
2222
requests==2.32.3
23-
securetar==2025.1.3
23+
securetar==2025.1.4
2424
sentry-sdk==2.20.0
2525
setuptools==75.8.0
2626
voluptuous==0.15.2
27-
dbus-fast==2.28.0
27+
dbus-fast==2.33.0
2828
typing_extensions==4.12.2
2929
zlib-fast==0.2.0

requirements_tests.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
astroid==3.3.8
2-
coverage==7.6.10
3-
pre-commit==4.0.1
4-
pylint==3.3.3
5-
pytest-aiohttp==1.0.5
6-
pytest-asyncio==0.23.6
2+
coverage==7.6.12
3+
pre-commit==4.1.0
4+
pylint==3.3.4
5+
pytest-aiohttp==1.1.0
6+
pytest-asyncio==0.25.2
77
pytest-cov==6.0.0
88
pytest-timeout==2.3.1
99
pytest==8.3.4
10-
ruff==0.9.2
10+
ruff==0.9.6
1111
time-machine==2.16.0
1212
typing_extensions==4.12.2
1313
urllib3==2.3.0

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _get_supervisor_version():
1919
for line in CONSTANTS.split("/n"):
2020
if match := RE_SUPERVISOR_VERSION.match(line):
2121
return match.group(1)
22-
return "99.9.9dev"
22+
return "9999.09.9.dev9999"
2323

2424

2525
setup(

0 commit comments

Comments
 (0)