mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove useless timeout guards in devolo_home_network (#100364)
This commit is contained in:
parent
f305661dd7
commit
8a8f1aff83
@ -1,7 +1,6 @@
|
||||
"""The devolo Home Network integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
@ -74,8 +73,7 @@ async def async_setup_entry( # noqa: C901
|
||||
"""Fetch data from API endpoint."""
|
||||
assert device.device
|
||||
try:
|
||||
async with asyncio.timeout(30):
|
||||
return await device.device.async_check_firmware_available()
|
||||
return await device.device.async_check_firmware_available()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
|
||||
@ -83,8 +81,7 @@ async def async_setup_entry( # noqa: C901
|
||||
"""Fetch data from API endpoint."""
|
||||
assert device.plcnet
|
||||
try:
|
||||
async with asyncio.timeout(10):
|
||||
return await device.plcnet.async_get_network_overview()
|
||||
return await device.plcnet.async_get_network_overview()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
|
||||
@ -92,8 +89,7 @@ async def async_setup_entry( # noqa: C901
|
||||
"""Fetch data from API endpoint."""
|
||||
assert device.device
|
||||
try:
|
||||
async with asyncio.timeout(10):
|
||||
return await device.device.async_get_wifi_guest_access()
|
||||
return await device.device.async_get_wifi_guest_access()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
except DevicePasswordProtected as err:
|
||||
@ -103,8 +99,7 @@ async def async_setup_entry( # noqa: C901
|
||||
"""Fetch data from API endpoint."""
|
||||
assert device.device
|
||||
try:
|
||||
async with asyncio.timeout(10):
|
||||
return await device.device.async_get_led_setting()
|
||||
return await device.device.async_get_led_setting()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
|
||||
@ -112,8 +107,7 @@ async def async_setup_entry( # noqa: C901
|
||||
"""Fetch data from API endpoint."""
|
||||
assert device.device
|
||||
try:
|
||||
async with asyncio.timeout(10):
|
||||
return await device.device.async_get_wifi_connected_station()
|
||||
return await device.device.async_get_wifi_connected_station()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
|
||||
@ -121,8 +115,7 @@ async def async_setup_entry( # noqa: C901
|
||||
"""Fetch data from API endpoint."""
|
||||
assert device.device
|
||||
try:
|
||||
async with asyncio.timeout(30):
|
||||
return await device.device.async_get_wifi_neighbor_access_points()
|
||||
return await device.device.async_get_wifi_neighbor_access_points()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user