Remove async-timeout as core dependency (#100912)

This commit is contained in:
Marc Mueller 2023-09-26 12:57:10 +02:00 committed by GitHub
parent 4df14b2625
commit bd7a86a0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 7 deletions

View File

@ -8,7 +8,6 @@ import dataclasses
import logging
from typing import Any, Protocol
import async_timeout
import voluptuous as vol
import yarl
@ -74,7 +73,7 @@ class WaitingAddonManager(AddonManager):
async def async_wait_until_addon_state(self, *states: AddonState) -> None:
"""Poll an addon's info until it is in a specific state."""
async with async_timeout.timeout(ADDON_INFO_POLL_TIMEOUT):
async with asyncio.timeout(ADDON_INFO_POLL_TIMEOUT):
while True:
try:
info = await self.async_get_addon_info()

View File

@ -9,7 +9,6 @@ from functools import cached_property
import logging
from typing import TypeVar
import async_timeout
from pyrainbird.async_client import (
AsyncRainbirdController,
RainbirdApiException,
@ -140,7 +139,7 @@ class RainbirdScheduleUpdateCoordinator(DataUpdateCoordinator[Schedule]):
async def _async_update_data(self) -> Schedule:
"""Fetch data from Rain Bird device."""
try:
async with async_timeout.timeout(TIMEOUT_SECONDS):
async with asyncio.timeout(TIMEOUT_SECONDS):
return await self._controller.get_schedule()
except RainbirdApiException as err:
raise UpdateFailed(f"Error communicating with Device: {err}") from err

View File

@ -2,7 +2,6 @@ aiodiscover==1.5.1
aiohttp==3.8.5
aiohttp_cors==0.7.0
astral==2.2
async-timeout==4.0.3
async-upnp-client==0.36.0
atomicwrites-homeassistant==1.4.1
attrs==23.1.0

View File

@ -25,7 +25,6 @@ requires-python = ">=3.11.0"
dependencies = [
"aiohttp==3.8.5",
"astral==2.2",
"async-timeout==4.0.3",
"attrs==23.1.0",
"atomicwrites-homeassistant==1.4.1",
"awesomeversion==23.8.0",

View File

@ -3,7 +3,6 @@
# Home Assistant Core
aiohttp==3.8.5
astral==2.2
async-timeout==4.0.3
attrs==23.1.0
atomicwrites-homeassistant==1.4.1
awesomeversion==23.8.0