Skip to content

Commit

Permalink
Refactor async_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Apr 25, 2024
1 parent 23c96aa commit a5ff5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/meross_cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit a5ff5d7

Please sign in to comment.