Skip to content

Commit 7855df9

Browse files
authored
2 parents c960bd2 + 11309f8 commit 7855df9

File tree

3,329 files changed

+196527
-74764
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,329 files changed

+196527
-74764
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@
3333
"GitHub.vscode-pull-request-github",
3434
"GitHub.copilot"
3535
],
36-
// Please keep this file in sync with settings in home-assistant/.vscode/settings.default.json
36+
// Please keep this file in sync with settings in home-assistant/.vscode/settings.default.jsonc
3737
"settings": {
3838
"python.experiments.optOutFrom": ["pythonTestAdapter"],
3939
"python.defaultInterpreterPath": "/home/vscode/.local/ha-venv/bin/python",
4040
"python.pythonPath": "/home/vscode/.local/ha-venv/bin/python",
4141
"python.terminal.activateEnvInCurrentTerminal": true,
4242
"python.testing.pytestArgs": ["--no-cov"],
4343
"pylint.importStrategy": "fromEnvironment",
44+
"python.analysis.typeCheckingMode": "basic",
4445
"editor.formatOnPaste": false,
4546
"editor.formatOnSave": true,
4647
"editor.formatOnType": true,
@@ -62,6 +63,9 @@
6263
"[python]": {
6364
"editor.defaultFormatter": "charliermarsh.ruff"
6465
},
66+
"[json][jsonc][yaml]": {
67+
"editor.defaultFormatter": "esbenp.prettier-vscode"
68+
},
6569
"json.schemas": [
6670
{
6771
"fileMatch": ["homeassistant/components/*/manifest.json"],

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ rules:
7474
- **Formatting**: Ruff
7575
- **Linting**: PyLint and Ruff
7676
- **Type Checking**: MyPy
77+
- **Lint/Type/Format Fixes**: Always prefer addressing the underlying issue (e.g., import the typed source, update shared stubs, align with Ruff expectations, or correct formatting at the source) before disabling a rule, adding `# type: ignore`, or skipping a formatter. Treat suppressions and `noqa` comments as a last resort once no compliant fix exists
7778
- **Testing**: pytest with plain functions and fixtures
7879
- **Language**: American English for all code, comments, and documentation (use sentence case, including titles)
7980

.github/workflows/builder.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T -
7070

7171
- name: Upload translations
72-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
72+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
7373
with:
7474
name: translations
7575
path: translations.tar.gz
@@ -175,7 +175,7 @@ jobs:
175175
sed -i "s|pykrakenapi|# pykrakenapi|g" requirements_all.txt
176176
177177
- name: Download translations
178-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
178+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
179179
with:
180180
name: translations
181181

@@ -190,7 +190,7 @@ jobs:
190190
echo "${{ github.sha }};${{ github.ref }};${{ github.event_name }};${{ github.actor }}" > rootfs/OFFICIAL_IMAGE
191191
192192
- name: Login to GitHub Container Registry
193-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
193+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
194194
with:
195195
registry: ghcr.io
196196
username: ${{ github.repository_owner }}
@@ -257,7 +257,7 @@ jobs:
257257
fi
258258
259259
- name: Login to GitHub Container Registry
260-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
260+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
261261
with:
262262
registry: ghcr.io
263263
username: ${{ github.repository_owner }}
@@ -326,20 +326,20 @@ jobs:
326326
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
327327

328328
- name: Install Cosign
329-
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
329+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
330330
with:
331331
cosign-release: "v2.2.3"
332332

333333
- name: Login to DockerHub
334334
if: matrix.registry == 'docker.io/homeassistant'
335-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
335+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
336336
with:
337337
username: ${{ secrets.DOCKERHUB_USERNAME }}
338338
password: ${{ secrets.DOCKERHUB_TOKEN }}
339339

340340
- name: Login to GitHub Container Registry
341341
if: matrix.registry == 'ghcr.io/home-assistant'
342-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
342+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
343343
with:
344344
registry: ghcr.io
345345
username: ${{ github.repository_owner }}
@@ -464,7 +464,7 @@ jobs:
464464
python-version: ${{ env.DEFAULT_PYTHON }}
465465

466466
- name: Download translations
467-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
467+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
468468
with:
469469
name: translations
470470

@@ -504,7 +504,7 @@ jobs:
504504
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
505505

506506
- name: Login to GitHub Container Registry
507-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
507+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
508508
with:
509509
registry: ghcr.io
510510
username: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)