diff --git a/custom_components/meross_cloud/__init__.py b/custom_components/meross_cloud/__init__.py index 8568f429dc..d6118fb639 100644 --- a/custom_components/meross_cloud/__init__.py +++ b/custom_components/meross_cloud/__init__.py @@ -3,7 +3,7 @@ from datetime import datetime, timedelta from typing import List, Tuple, Mapping, Any, Dict, Optional, Collection -import async_timeout +import asyncio import homeassistant.helpers.config_validation as cv import voluptuous as vol from homeassistant import config_entries @@ -128,7 +128,7 @@ def __init__(self, async def _async_fetch_http_data(self): try: - async with async_timeout.timeout(10): + async with asyncio.timeout(10): # Fetch devices and compose a quick-access dictionary devices = await self._client.async_list_devices() return {device.uuid: device for device in devices}