Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wittypluck authored Oct 21, 2023
2 parents d372e07 + faa149b commit 4b1c80e
Show file tree
Hide file tree
Showing 921 changed files with 33,002 additions and 19,412 deletions.
13 changes: 6 additions & 7 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ omit =
homeassistant/components/comelit/cover.py
homeassistant/components/comelit/coordinator.py
homeassistant/components/comelit/light.py
homeassistant/components/comelit/switch.py
homeassistant/components/comfoconnect/fan.py
homeassistant/components/concord232/alarm_control_panel.py
homeassistant/components/concord232/binary_sensor.py
Expand Down Expand Up @@ -376,6 +377,7 @@ omit =
homeassistant/components/fibaro/binary_sensor.py
homeassistant/components/fibaro/climate.py
homeassistant/components/fibaro/cover.py
homeassistant/components/fibaro/event.py
homeassistant/components/fibaro/light.py
homeassistant/components/fibaro/lock.py
homeassistant/components/fibaro/sensor.py
Expand Down Expand Up @@ -743,11 +745,6 @@ omit =
homeassistant/components/mikrotik/hub.py
homeassistant/components/mill/climate.py
homeassistant/components/mill/sensor.py
homeassistant/components/minecraft_server/__init__.py
homeassistant/components/minecraft_server/binary_sensor.py
homeassistant/components/minecraft_server/coordinator.py
homeassistant/components/minecraft_server/entity.py
homeassistant/components/minecraft_server/sensor.py
homeassistant/components/minio/minio_helper.py
homeassistant/components/mjpeg/camera.py
homeassistant/components/mjpeg/util.py
Expand Down Expand Up @@ -788,6 +785,7 @@ omit =
homeassistant/components/mystrom/binary_sensor.py
homeassistant/components/mystrom/light.py
homeassistant/components/mystrom/switch.py
homeassistant/components/mystrom/sensor.py
homeassistant/components/nad/media_player.py
homeassistant/components/nanoleaf/__init__.py
homeassistant/components/nanoleaf/button.py
Expand Down Expand Up @@ -1115,7 +1113,6 @@ omit =
homeassistant/components/sesame/lock.py
homeassistant/components/seven_segments/image_processing.py
homeassistant/components/seventeentrack/sensor.py
homeassistant/components/shiftr/*
homeassistant/components/shodan/sensor.py
homeassistant/components/sia/__init__.py
homeassistant/components/sia/alarm_control_panel.py
Expand Down Expand Up @@ -1394,6 +1391,7 @@ omit =
homeassistant/components/trafikverket_weatherstation/coordinator.py
homeassistant/components/trafikverket_weatherstation/sensor.py
homeassistant/components/transmission/__init__.py
homeassistant/components/transmission/coordinator.py
homeassistant/components/transmission/sensor.py
homeassistant/components/transmission/switch.py
homeassistant/components/travisci/sensor.py
Expand Down Expand Up @@ -1468,7 +1466,9 @@ omit =
homeassistant/components/vicare/binary_sensor.py
homeassistant/components/vicare/button.py
homeassistant/components/vicare/climate.py
homeassistant/components/vicare/entity.py
homeassistant/components/vicare/sensor.py
homeassistant/components/vicare/utils.py
homeassistant/components/vicare/water_heater.py
homeassistant/components/vilfo/__init__.py
homeassistant/components/vilfo/sensor.py
Expand Down Expand Up @@ -1510,7 +1510,6 @@ omit =
homeassistant/components/wiffi/sensor.py
homeassistant/components/wiffi/wiffi_strings.py
homeassistant/components/wirelesstag/*
homeassistant/components/withings/api.py
homeassistant/components/wolflink/__init__.py
homeassistant/components/wolflink/sensor.py
homeassistant/components/worldtidesinfo/sensor.py
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
publish: ${{ steps.version.outputs.publish }}
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
fetch-depth: 0

Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
if: github.repository_owner == 'home-assistant' && needs.init.outputs.publish == 'true'
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
arch: ${{ fromJson(needs.init.outputs.architectures) }}
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Download nightly wheels of frontend
if: needs.init.outputs.channel == 'dev'
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
- green
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Set build additional args
run: |
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Initialize git
uses: home-assistant/actions/helpers/git-init@master
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
id-token: write
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Install Cosign
uses: sigstore/[email protected]
Expand Down
34 changes: 18 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@ env:
BLACK_CACHE_VERSION: 1
HA_SHORT_VERSION: "2023.11"
DEFAULT_PYTHON: "3.11"
ALL_PYTHON_VERSIONS: "['3.11']"
ALL_PYTHON_VERSIONS: "['3.11', '3.12']"
# 10.3 is the oldest supported version
# - 10.3.32 is the version currently shipped with Synology (as of 17 Feb 2022)
# 10.6 is the current long-term-support
# - 10.6.10 is the version currently shipped with the Add-on (as of 31 Jan 2023)
# 10.10 is the latest short-term-support
# - 10.10.3 is the latest (as of 6 Feb 2023)
# 10.11 is the latest long-term-support
# - 10.11.2 is the version currently shipped with Synology (as of 11 Oct 2023)
# mysql 8.0.32 does not always behave the same as MariaDB
# and some queries that work on MariaDB do not work on MySQL
MARIADB_VERSIONS: "['mariadb:10.3.32','mariadb:10.6.10','mariadb:10.10.3','mysql:8.0.32']"
MARIADB_VERSIONS: "['mariadb:10.3.32','mariadb:10.6.10','mariadb:10.10.3','mariadb:10.11.2','mysql:8.0.32']"
# 12 is the oldest supported version
# - 12.14 is the latest (as of 9 Feb 2023)
# 15 is the latest version
Expand Down Expand Up @@ -89,7 +91,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Generate partial Python venv restore key
id: generate_python_cache_key
run: >-
Expand Down Expand Up @@ -222,7 +224,7 @@ jobs:
- info
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -267,7 +269,7 @@ jobs:
- pre-commit
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
id: python
Expand Down Expand Up @@ -335,7 +337,7 @@ jobs:
- pre-commit
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
id: python
Expand Down Expand Up @@ -384,7 +386,7 @@ jobs:
- pre-commit
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
id: python
Expand Down Expand Up @@ -478,7 +480,7 @@ jobs:
python-version: ${{ fromJSON(needs.info.outputs.python_versions) }}
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -546,7 +548,7 @@ jobs:
- base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -578,7 +580,7 @@ jobs:
- base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -611,7 +613,7 @@ jobs:
- base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -655,7 +657,7 @@ jobs:
- base
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -737,7 +739,7 @@ jobs:
bluez \
ffmpeg
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -889,7 +891,7 @@ jobs:
ffmpeg \
libmariadb-dev-compat
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -1013,7 +1015,7 @@ jobs:
ffmpeg \
postgresql-server-dev-14
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/[email protected]
Expand Down Expand Up @@ -1108,7 +1110,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Check out code from GitHub
uses: actions/[email protected].0
uses: actions/[email protected].1
- name: Download all coverage artifacts
uses: actions/download-artifact@v3
- name: Upload coverage to Codecov (full coverage)
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL"

# yamllint disable-line rule:truthy
on:
push:
branches:
- dev
- rc
- master
schedule:
- cron: "30 18 * * 4"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Check out code from GitHub
uses: actions/[email protected]

- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/[email protected]
with:
category: "/language:python"
2 changes: 1 addition & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
Expand Down
Loading

0 comments on commit 4b1c80e

Please sign in to comment.