Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
pull_request: ~

env:
CACHE_VERSION: 7
PIP_CACHE_VERSION: 1
CACHE_VERSION: 9
PIP_CACHE_VERSION: 3
HA_SHORT_VERSION: 2022.3
DEFAULT_PYTHON: 3.9
PRE_COMMIT_CACHE: ~/.cache/pre-commit
Expand Down Expand Up @@ -524,10 +524,10 @@ jobs:
prepare-tests:
name: Prepare tests for Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 60
strategy:
matrix:
python-version: [3.9]
python-version: ["3.9", "3.10"]
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
container: homeassistant/ci-azure:${{ matrix.python-version }}
Expand Down Expand Up @@ -721,7 +721,7 @@ jobs:
fail-fast: false
matrix:
group: ${{ fromJson(needs.changes.outputs.test_groups) }}
python-version: [3.9]
python-version: ["3.9", "3.10"]
name: >-
Run tests Python ${{ matrix.python-version }} (${{ matrix.group }})
container: homeassistant/ci-azure:${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ jobs:
sed -i "s|# face_recognition|face_recognition|g" ${requirement_file}
sed -i "s|# bme680|bme680|g" ${requirement_file}
sed -i "s|# python-gammu|python-gammu|g" ${requirement_file}
sed -i "s|# homeassistant-pyozw|homeassistant-pyozw|g" ${requirement_file}
done

- name: Build wheels
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ RUN \
-r homeassistant/requirements.txt --use-deprecated=legacy-resolver
COPY requirements_all.txt homeassistant/
RUN \
pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
sed -i "s|# homeassistant-pyozw|homeassistant-pyozw|g" homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
-r homeassistant/requirements_all.txt --use-deprecated=legacy-resolver

## Setup Home Assistant Core
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/apcupsd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for APCUPSd via its Network Information Server (NIS)."""
# pylint: disable=import-error
from datetime import timedelta
import logging

Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/apcupsd/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"disabled": "Integration library not compatible with Python 3.10",
"domain": "apcupsd",
"name": "apcupsd",
"documentation": "https://www.home-assistant.io/integrations/apcupsd",
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/apcupsd/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for APCUPSd sensors."""
# pylint: disable=import-error
from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/apns/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"disabled": "Integration library not compatible with Python 3.10",
"domain": "apns",
"name": "Apple Push Notification Service (APNS)",
"documentation": "https://www.home-assistant.io/integrations/apns",
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/apns/notify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""APNS Notification platform."""
# pylint: disable=import-error
from contextlib import suppress
import logging

Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/xbee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for XBee Zigbee devices."""
# pylint: disable=import-error
from binascii import hexlify, unhexlify
import logging

Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/xbee/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"disabled": "Integration library not compatible with Python 3.10",
"domain": "xbee",
"name": "XBee",
"documentation": "https://www.home-assistant.io/integrations/xbee",
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/xbee/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for XBee Zigbee sensors."""
# pylint: disable=import-error
from __future__ import annotations

from binascii import hexlify
Expand Down
3 changes: 1 addition & 2 deletions homeassistant/components/zwave/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Z-Wave."""
# pylint: disable=import-error
# pylint: disable=import-outside-toplevel
from __future__ import annotations

Expand Down Expand Up @@ -355,8 +356,6 @@ async def async_setup_entry( # noqa: C901
from openzwave.group import ZWaveGroup
from openzwave.network import ZWaveNetwork
from openzwave.option import ZWaveOption

# pylint: enable=import-error
from pydispatch import dispatcher

if async_is_ozw_migrated(hass) or async_is_zwave_js_migrated(hass):
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/zwave/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow to configure Z-Wave."""
# pylint: disable=import-error
# pylint: disable=import-outside-toplevel
from collections import OrderedDict

Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/zwave/node_entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Entity class that represents Z-Wave node."""
# pylint: disable=import-error
# pylint: disable=import-outside-toplevel
from itertools import count

Expand Down
8 changes: 4 additions & 4 deletions homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ enum34==1000000000.0.0
typing==1000000000.0.0
uuid==1000000000.0.0

# Temporary constraint on pandas, to unblock 2021.7 releases
# until we have fixed the wheels builds for newer versions.
pandas==1.3.0

# regex causes segfault with version 2021.8.27
# https://bitbucket.org/mrabarnett/mrab-regex/issues/421/2021827-results-in-fatal-python-error
# This is fixed in 2021.8.28
Expand All @@ -84,6 +80,10 @@ anyio==3.5.0
h11==0.12.0
httpcore==0.14.5

# Ensure we have a hyperframe version that works in Python 3.10
# 5.2.0 fixed a collections abc deprecation
hyperframe>=5.2.0

# pytest_asyncio breaks our test suite. We rely on pytest-aiohttp instead
pytest_asyncio==1000000000.0.0

Expand Down
11 changes: 1 addition & 10 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,6 @@ anel_pwrctrl-homeassistant==0.0.1.dev2
# homeassistant.components.anthemav
anthemav==1.2.0

# homeassistant.components.apcupsd
apcaccess==0.0.13

# homeassistant.components.apns
apns2==0.3.0

# homeassistant.components.apprise
apprise==0.9.7

Expand Down Expand Up @@ -842,7 +836,7 @@ holidays==0.12
home-assistant-frontend==20220214.0

# homeassistant.components.zwave
homeassistant-pyozw==0.1.10
# homeassistant-pyozw==0.1.10

# homeassistant.components.home_connect
homeconnect==0.6.3
Expand Down Expand Up @@ -2493,9 +2487,6 @@ wled==0.13.0
# homeassistant.components.wolflink
wolf_smartset==0.1.11

# homeassistant.components.xbee
xbee-helper==0.0.7

# homeassistant.components.xbox
xbox-webapi==2.0.11

Expand Down
5 changes: 1 addition & 4 deletions requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ ambiclimate==0.2.1
# homeassistant.components.androidtv
androidtv[async]==0.0.63

# homeassistant.components.apns
apns2==0.3.0

# homeassistant.components.apprise
apprise==0.9.7

Expand Down Expand Up @@ -552,7 +549,7 @@ holidays==0.12
home-assistant-frontend==20220214.0

# homeassistant.components.zwave
homeassistant-pyozw==0.1.10
# homeassistant-pyozw==0.1.10

# homeassistant.components.home_connect
homeconnect==0.6.3
Expand Down
9 changes: 5 additions & 4 deletions script/gen_requirements_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"envirophat",
"evdev",
"face_recognition",
"homeassistant-pyozw",
"i2csense",
"opencv-python-headless",
"pybluez",
Expand Down Expand Up @@ -94,10 +95,6 @@
typing==1000000000.0.0
uuid==1000000000.0.0

# Temporary constraint on pandas, to unblock 2021.7 releases
# until we have fixed the wheels builds for newer versions.
pandas==1.3.0

# regex causes segfault with version 2021.8.27
# https://bitbucket.org/mrabarnett/mrab-regex/issues/421/2021827-results-in-fatal-python-error
# This is fixed in 2021.8.28
Expand All @@ -111,6 +108,10 @@
h11==0.12.0
httpcore==0.14.5

# Ensure we have a hyperframe version that works in Python 3.10
# 5.2.0 fixed a collections abc deprecation
hyperframe>=5.2.0

# pytest_asyncio breaks our test suite. We rely on pytest-aiohttp instead
pytest_asyncio==1000000000.0.0

Expand Down
1 change: 0 additions & 1 deletion tests/components/apns/__init__.py

This file was deleted.

Loading