Skip to content

Commit 60bdc13

Browse files
authored
Drop Python 3.12 support (home-assistant#135589)
1 parent fa96168 commit 60bdc13

File tree

32 files changed

+62
-68
lines changed

32 files changed

+62
-68
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ env:
4141
UV_CACHE_VERSION: 1
4242
MYPY_CACHE_VERSION: 9
4343
HA_SHORT_VERSION: "2025.2"
44-
DEFAULT_PYTHON: "3.12"
45-
ALL_PYTHON_VERSIONS: "['3.12', '3.13']"
44+
DEFAULT_PYTHON: "3.13"
45+
ALL_PYTHON_VERSIONS: "['3.13']"
4646
# 10.3 is the oldest supported version
4747
# - 10.3.32 is the version currently shipped with Synology (as of 17 Feb 2022)
4848
# 10.6 is the current long-term-support

.github/workflows/translations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- "**strings.json"
1111

1212
env:
13-
DEFAULT_PYTHON: "3.12"
13+
DEFAULT_PYTHON: "3.13"
1414

1515
jobs:
1616
upload:

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- "script/gen_requirements_all.py"
1818

1919
env:
20-
DEFAULT_PYTHON: "3.12"
20+
DEFAULT_PYTHON: "3.13"
2121

2222
concurrency:
2323
group: ${{ github.workflow }}-${{ github.ref_name}}

homeassistant/auth/mfa_modules/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
import logging
66
import types
7-
from typing import Any, Generic
7+
from typing import Any, Generic, TypeVar
88

9-
from typing_extensions import TypeVar
109
import voluptuous as vol
1110
from voluptuous.humanize import humanize_error
1211

homeassistant/auth/providers/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
from collections.abc import Mapping
66
import logging
77
import types
8-
from typing import Any, Generic
8+
from typing import Any, Generic, TypeVar
99

10-
from typing_extensions import TypeVar
1110
import voluptuous as vol
1211
from voluptuous.humanize import humanize_error
1312

homeassistant/components/actiontec/device_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from __future__ import annotations
44

55
import logging
6-
import telnetlib # pylint: disable=deprecated-module
76
from typing import Final
87

8+
import telnetlib # pylint: disable=deprecated-module
99
import voluptuous as vol
1010

1111
from homeassistant.components.device_tracker import (

homeassistant/components/assist_pipeline/websocket_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
"""Assist pipeline Websocket API."""
22

33
import asyncio
4-
5-
# Suppressing disable=deprecated-module is needed for Python 3.11
6-
import audioop # pylint: disable=deprecated-module
74
import base64
85
from collections.abc import AsyncGenerator, Callable
96
import contextlib
107
import logging
118
import math
129
from typing import Any, Final
1310

11+
# Suppressing disable=deprecated-module is needed for Python 3.11
12+
import audioop # pylint: disable=deprecated-module
1413
import voluptuous as vol
1514

1615
from homeassistant.components import conversation, stt, tts, websocket_api

homeassistant/components/bluetooth/passive_update_coordinator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING, Any
6-
7-
from typing_extensions import TypeVar
5+
from typing import TYPE_CHECKING, Any, TypeVar
86

97
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
108
from homeassistant.helpers.update_coordinator import (

homeassistant/components/broadlink/device.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from contextlib import suppress
44
from functools import partial
55
import logging
6-
from typing import Generic
6+
from typing import Generic, TypeVar
77

88
import broadlink as blk
99
from broadlink.exceptions import (
@@ -13,7 +13,6 @@
1313
ConnectionClosedError,
1414
NetworkTimeoutError,
1515
)
16-
from typing_extensions import TypeVar
1716

1817
from homeassistant.config_entries import ConfigEntry
1918
from homeassistant.const import (

homeassistant/components/broadlink/updater.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
from abc import ABC, abstractmethod
66
from datetime import datetime, timedelta
77
import logging
8-
from typing import TYPE_CHECKING, Any, Generic
8+
from typing import TYPE_CHECKING, Any, Generic, TypeVar
99

1010
import broadlink as blk
1111
from broadlink.exceptions import AuthorizationError, BroadlinkException
12-
from typing_extensions import TypeVar
1312

1413
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
1514
from homeassistant.util import dt as dt_util

0 commit comments

Comments
 (0)