mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 20:48:20 +00:00
Update bleak to 1.0.1
This commit is contained in:
parent
2bdfc8cf5e
commit
ef4699375c
@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"quality_scale": "internal",
|
"quality_scale": "internal",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"bleak==0.22.3",
|
"bleak==1.0.1",
|
||||||
"bleak-retry-connector==3.9.0",
|
"bleak-retry-connector==3.9.0",
|
||||||
"bluetooth-adapters==0.21.4",
|
"bluetooth-adapters==0.21.4",
|
||||||
"bluetooth-auto-recovery==1.5.2",
|
"bluetooth-auto-recovery==1.5.2",
|
||||||
|
@ -21,7 +21,7 @@ av==13.1.0
|
|||||||
awesomeversion==25.5.0
|
awesomeversion==25.5.0
|
||||||
bcrypt==4.3.0
|
bcrypt==4.3.0
|
||||||
bleak-retry-connector==3.9.0
|
bleak-retry-connector==3.9.0
|
||||||
bleak==0.22.3
|
bleak==1.0.1
|
||||||
bluetooth-adapters==0.21.4
|
bluetooth-adapters==0.21.4
|
||||||
bluetooth-auto-recovery==1.5.2
|
bluetooth-auto-recovery==1.5.2
|
||||||
bluetooth-data-tools==1.28.1
|
bluetooth-data-tools==1.28.1
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -622,7 +622,7 @@ bleak-esphome==2.16.0
|
|||||||
bleak-retry-connector==3.9.0
|
bleak-retry-connector==3.9.0
|
||||||
|
|
||||||
# homeassistant.components.bluetooth
|
# homeassistant.components.bluetooth
|
||||||
bleak==0.22.3
|
bleak==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.blebox
|
# homeassistant.components.blebox
|
||||||
blebox-uniapi==2.5.0
|
blebox-uniapi==2.5.0
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -556,7 +556,7 @@ bleak-esphome==2.16.0
|
|||||||
bleak-retry-connector==3.9.0
|
bleak-retry-connector==3.9.0
|
||||||
|
|
||||||
# homeassistant.components.bluetooth
|
# homeassistant.components.bluetooth
|
||||||
bleak==0.22.3
|
bleak==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.blebox
|
# homeassistant.components.blebox
|
||||||
blebox-uniapi==2.5.0
|
blebox-uniapi==2.5.0
|
||||||
|
@ -27,6 +27,7 @@ PACKAGE_CHECK_VERSION_RANGE = {
|
|||||||
"aiohttp": "SemVer",
|
"aiohttp": "SemVer",
|
||||||
"attrs": "CalVer",
|
"attrs": "CalVer",
|
||||||
"awesomeversion": "CalVer",
|
"awesomeversion": "CalVer",
|
||||||
|
"bleak": "SemVer",
|
||||||
"grpcio": "SemVer",
|
"grpcio": "SemVer",
|
||||||
"httpx": "SemVer",
|
"httpx": "SemVer",
|
||||||
"mashumaro": "SemVer",
|
"mashumaro": "SemVer",
|
||||||
@ -298,10 +299,6 @@ PYTHON_VERSION_CHECK_EXCEPTIONS: dict[str, dict[str, set[str]]] = {
|
|||||||
# - domain is the integration domain
|
# - domain is the integration domain
|
||||||
# - package is the package (can be transitive) referencing the dependency
|
# - package is the package (can be transitive) referencing the dependency
|
||||||
# - dependencyX should be the name of the referenced 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": {
|
"python_script": {
|
||||||
# Security audits are needed for each Python version
|
# Security audits are needed for each Python version
|
||||||
"homeassistant": {"restrictedpython"}
|
"homeassistant": {"restrictedpython"}
|
||||||
@ -502,17 +499,9 @@ def get_requirements(integration: Integration, packages: set[str]) -> set[str]:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Check for restrictive version limits on Python
|
# Check for restrictive version limits on Python
|
||||||
if (
|
if (requires_python := metadata(package)["Requires-Python"]) and not all(
|
||||||
(requires_python := metadata(package)["Requires-Python"])
|
_is_dependency_version_range_valid(version_part, "SemVer")
|
||||||
and not all(
|
for version_part in requires_python.split(",")
|
||||||
_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")
|
|
||||||
):
|
):
|
||||||
needs_python_version_check_exception = True
|
needs_python_version_check_exception = True
|
||||||
integration.add_warning_or_error(
|
integration.add_warning_or_error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user