diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index e47c5f7d66c..0be11dfff97 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -3,7 +3,6 @@ aiodhcpwatcher==1.2.0 aiodiscover==2.7.0 aiodns==3.5.0 -aiofiles==24.1.0 aiohasupervisor==0.3.1 aiohttp-asyncmdnsresolver==0.1.1 aiohttp-fast-zlib==0.3.0 @@ -201,6 +200,14 @@ tenacity!=8.4.0 # TypeError: 'Timeout' object does not support the context manager protocol async-timeout==4.0.3 +# aiofiles keeps getting downgraded by custom components +# causing newer methods to not be available and breaking +# some integrations at startup +# https://github.com/home-assistant/core/issues/127529 +# https://github.com/home-assistant/core/issues/122508 +# https://github.com/home-assistant/core/issues/118004 +aiofiles>=24.1.0 + # multidict < 6.4.0 has memory leaks # https://github.com/aio-libs/multidict/issues/1134 # https://github.com/aio-libs/multidict/issues/1131 diff --git a/pyproject.toml b/pyproject.toml index f7ac7476d1b..995308bbf0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,6 @@ classifiers = [ requires-python = ">=3.13.2" dependencies = [ "aiodns==3.5.0", - "aiofiles==24.1.0", # Integrations may depend on hassio integration without listing it to # change behavior based on presence of supervisor. Deprecated with #127228 # Lib can be removed with 2025.11 diff --git a/requirements.txt b/requirements.txt index 39ec6dd87dd..687e5584355 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ # Home Assistant Core aiodns==3.5.0 -aiofiles==24.1.0 aiohasupervisor==0.3.1 aiohttp==3.12.13 aiohttp_cors==0.8.1 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 2e3ecccf5d2..005d97175a7 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -226,6 +226,14 @@ tenacity!=8.4.0 # TypeError: 'Timeout' object does not support the context manager protocol async-timeout==4.0.3 +# aiofiles keeps getting downgraded by custom components +# causing newer methods to not be available and breaking +# some integrations at startup +# https://github.com/home-assistant/core/issues/127529 +# https://github.com/home-assistant/core/issues/122508 +# https://github.com/home-assistant/core/issues/118004 +aiofiles>=24.1.0 + # multidict < 6.4.0 has memory leaks # https://github.com/aio-libs/multidict/issues/1134 # https://github.com/aio-libs/multidict/issues/1131