Update bleak to 1.0.1

This commit is contained in:
Marc Mueller 2025-06-29 00:20:16 +02:00
parent 2bdfc8cf5e
commit ef4699375c
No known key found for this signature in database
5 changed files with 8 additions and 19 deletions

View File

@ -15,7 +15,7 @@
],
"quality_scale": "internal",
"requirements": [
"bleak==0.22.3",
"bleak==1.0.1",
"bleak-retry-connector==3.9.0",
"bluetooth-adapters==0.21.4",
"bluetooth-auto-recovery==1.5.2",

View File

@ -21,7 +21,7 @@ av==13.1.0
awesomeversion==25.5.0
bcrypt==4.3.0
bleak-retry-connector==3.9.0
bleak==0.22.3
bleak==1.0.1
bluetooth-adapters==0.21.4
bluetooth-auto-recovery==1.5.2
bluetooth-data-tools==1.28.1

2
requirements_all.txt generated
View File

@ -622,7 +622,7 @@ bleak-esphome==2.16.0
bleak-retry-connector==3.9.0
# homeassistant.components.bluetooth
bleak==0.22.3
bleak==1.0.1
# homeassistant.components.blebox
blebox-uniapi==2.5.0

View File

@ -556,7 +556,7 @@ bleak-esphome==2.16.0
bleak-retry-connector==3.9.0
# homeassistant.components.bluetooth
bleak==0.22.3
bleak==1.0.1
# homeassistant.components.blebox
blebox-uniapi==2.5.0

View File

@ -27,6 +27,7 @@ PACKAGE_CHECK_VERSION_RANGE = {
"aiohttp": "SemVer",
"attrs": "CalVer",
"awesomeversion": "CalVer",
"bleak": "SemVer",
"grpcio": "SemVer",
"httpx": "SemVer",
"mashumaro": "SemVer",
@ -298,10 +299,6 @@ PYTHON_VERSION_CHECK_EXCEPTIONS: dict[str, dict[str, set[str]]] = {
# - domain is the integration domain
# - package is the package (can be transitive) referencing the dependency
# - dependencyX should be the name of the referenced dependency
"bluetooth": {
# https://github.com/hbldh/bleak/pull/1718 (not yet released)
"homeassistant": {"bleak"}
},
"python_script": {
# Security audits are needed for each Python version
"homeassistant": {"restrictedpython"}
@ -502,17 +499,9 @@ def get_requirements(integration: Integration, packages: set[str]) -> set[str]:
continue
# Check for restrictive version limits on Python
if (
(requires_python := metadata(package)["Requires-Python"])
and not all(
_is_dependency_version_range_valid(version_part, "SemVer")
for version_part in requires_python.split(",")
)
# "bleak" is a transient dependency of 53 integrations, and we don't
# want to add the whole list to PYTHON_VERSION_CHECK_EXCEPTIONS
# This extra check can be removed when bleak is updated
# https://github.com/hbldh/bleak/pull/1718
and (package in packages or package != "bleak")
if (requires_python := metadata(package)["Requires-Python"]) and not all(
_is_dependency_version_range_valid(version_part, "SemVer")
for version_part in requires_python.split(",")
):
needs_python_version_check_exception = True
integration.add_warning_or_error(