mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Remove useless timeout guards in devolo_home_network (#100364)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""The devolo Home Network integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
@@ -74,7 +73,6 @@ 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()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
@@ -83,7 +81,6 @@ 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()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
@@ -92,7 +89,6 @@ 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()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
@@ -103,7 +99,6 @@ 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()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
@@ -112,7 +107,6 @@ 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()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
@@ -121,7 +115,6 @@ 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()
|
||||
except DeviceUnavailable as err:
|
||||
raise UpdateFailed(err) from err
|
||||
|
Reference in New Issue
Block a user