diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 884e7585dcd..a797462a884 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -10,7 +10,7 @@ on: env: BUILD_TYPE: core - DEFAULT_PYTHON: 3.8 + DEFAULT_PYTHON: 3.9 jobs: init: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 73c7d5d149e..e5bb5e5019c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ on: env: CACHE_VERSION: 5 PIP_CACHE_VERSION: 1 - DEFAULT_PYTHON: 3.8 + DEFAULT_PYTHON: 3.9 PRE_COMMIT_CACHE: ~/.cache/pre-commit PIP_CACHE: /tmp/pip-cache SQLALCHEMY_WARN_20: 1 @@ -467,7 +467,7 @@ jobs: needs: prepare-tests strategy: matrix: - python-version: [3.8] + python-version: [3.9] container: homeassistant/ci-azure:${{ matrix.python-version }} steps: - name: Check out code from GitHub @@ -524,7 +524,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - python-version: [3.8, 3.9] + python-version: [3.9] outputs: python-key: ${{ steps.generate-python-key.outputs.key }} container: homeassistant/ci-azure:${{ matrix.python-version }} @@ -593,7 +593,7 @@ jobs: - prepare-tests strategy: matrix: - python-version: [3.8] + python-version: [3.9] container: homeassistant/ci-azure:${{ matrix.python-version }} steps: - name: Check out code from GitHub @@ -633,7 +633,7 @@ jobs: - prepare-tests strategy: matrix: - python-version: [3.8] + python-version: [3.9] container: homeassistant/ci-azure:${{ matrix.python-version }} steps: - name: Check out code from GitHub @@ -681,7 +681,7 @@ jobs: fail-fast: false matrix: group: ${{ fromJson(needs.changes.outputs.test_groups) }} - python-version: [3.8, 3.9] + python-version: [3.9] name: >- Run tests Python ${{ matrix.python-version }} (${{ matrix.group }}) container: homeassistant/ci-azure:${{ matrix.python-version }} @@ -732,7 +732,7 @@ jobs: -p no:sugar \ tests - name: Run pytest (partially) - if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8' + if: needs.changes.outputs.test_full_suite == 'false' timeout-minutes: 10 shell: bash run: | @@ -757,7 +757,7 @@ jobs: -p no:sugar \ tests/components/${{ matrix.group }} - name: Run pytest (partially); no coverage - if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version == '3.8' + if: needs.changes.outputs.test_full_suite == 'false' timeout-minutes: 10 run: | . venv/bin/activate diff --git a/.github/workflows/translations.yaml b/.github/workflows/translations.yaml index 6c9c6700e9f..2ef5ded0b59 100644 --- a/.github/workflows/translations.yaml +++ b/.github/workflows/translations.yaml @@ -12,7 +12,7 @@ on: - "**strings.json" env: - DEFAULT_PYTHON: 3.8 + DEFAULT_PYTHON: 3.9 jobs: upload: diff --git a/homeassistant/components/sentry/__init__.py b/homeassistant/components/sentry/__init__.py index c23b357066b..f51ea8a6b92 100644 --- a/homeassistant/components/sentry/__init__.py +++ b/homeassistant/components/sentry/__init__.py @@ -78,7 +78,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ), } - sentry_sdk.init( + sentry_sdk.init( # pylint: disable=abstract-class-instantiated dsn=entry.data[CONF_DSN], environment=entry.options.get(CONF_ENVIRONMENT), integrations=[sentry_logging, AioHttpIntegration(), SqlalchemyIntegration()], diff --git a/homeassistant/const.py b/homeassistant/const.py index 6dcda3243b1..f5032079ca5 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -10,10 +10,10 @@ MINOR_VERSION: Final = 2 PATCH_VERSION: Final = "0.dev0" __short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}" __version__: Final = f"{__short_version__}.{PATCH_VERSION}" -REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 8, 0) +REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0) # Truthy date string triggers showing related deprecation warning messages. REQUIRED_NEXT_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0) -REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = "2022.1" +REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = "" # Format for platform files PLATFORM_FORMAT: Final = "{platform}.{domain}" diff --git a/mypy.ini b/mypy.ini index 349a2bc4af2..6d13e0a1c21 100644 --- a/mypy.ini +++ b/mypy.ini @@ -3,7 +3,7 @@ # To update, run python3 -m script.hassfest [mypy] -python_version = 3.8 +python_version = 3.9 show_error_codes = true follow_imports = silent ignore_missing_imports = true diff --git a/setup.cfg b/setup.cfg index ad1e6650a59..f285902985c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,6 @@ classifier = Intended Audience :: Developers License :: OSI Approved :: Apache Software License Operating System :: OS Independent - Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Topic :: Home Automation diff --git a/tox.ini b/tox.ini index 0532d67b247..af2f9961956 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, py39, lint, pylint, typing, cov +envlist = py39, lint, pylint, typing, cov skip_missing_interpreters = True ignore_basepython_conflict = True