Skip to content

Commit

Permalink
Disable Python 3.12 incompatible integrations (#108163)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 17, 2024
1 parent 15384f4 commit 3eb1283
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/cisco_webex_teams/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"domain": "cisco_webex_teams",
"name": "Cisco Webex Teams",
"codeowners": ["@fbradyirl"],
"disabled": "Integration library not compatible with Python 3.12",
"documentation": "https://www.home-assistant.io/integrations/cisco_webex_teams",
"iot_class": "cloud_push",
"loggers": ["webexteamssdk"],
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/metoffice/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "Met Office",
"codeowners": ["@MrHarcombe", "@avee87"],
"config_flow": true,
"disabled": "Integration library not compatible with Python 3.12",
"documentation": "https://www.home-assistant.io/integrations/metoffice",
"iot_class": "cloud_polling",
"loggers": ["datapoint"],
Expand Down
6 changes: 0 additions & 6 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,6 @@ crownstone-uart==2.1.0
# homeassistant.components.datadog
datadog==0.15.0

# homeassistant.components.metoffice
datapoint==0.9.8;python_version<'3.12'

# homeassistant.components.bluetooth
dbus-fast==2.21.1

Expand Down Expand Up @@ -2799,9 +2796,6 @@ watchdog==2.3.1
# homeassistant.components.waterfurnace
waterfurnace==1.1.0

# homeassistant.components.cisco_webex_teams
webexteamssdk==1.1.1;python_version<'3.12'

# homeassistant.components.assist_pipeline
webrtc-noise-gain==1.2.3

Expand Down
3 changes: 0 additions & 3 deletions requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ crownstone-uart==2.1.0
# homeassistant.components.datadog
datadog==0.15.0

# homeassistant.components.metoffice
datapoint==0.9.8;python_version<'3.12'

# homeassistant.components.bluetooth
dbus-fast==2.21.1

Expand Down
11 changes: 6 additions & 5 deletions tests/components/metoffice/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""Fixtures for Met Office weather integration tests."""
import sys
from unittest.mock import patch

import pytest

if sys.version_info < (3, 12):
from datapoint.exceptions import APIException
else:
collect_ignore_glob = ["test_*.py"]
# All tests are marked as disabled, as the integration is disabled in the
# integration manifest. `datapoint` isn't compatible with Python 3.12
#
# from datapoint.exceptions import APIException
APIException = Exception
collect_ignore_glob = ["test_*.py"]


@pytest.fixture
Expand Down

0 comments on commit 3eb1283

Please sign in to comment.