Remove double timeout from gogogate2 (#42052)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-18 15:46:13 -05:00
1 parent 6ab9b7355f
commit c86dfeb6e2
1 file changed
+1 -3
+1 -3
View File
@@ -3,7 +3,6 @@ from datetime import timedelta
import logging
from typing import Awaitable, Callable, NamedTuple, Optional
import async_timeout
from gogogate2_api import AbstractGateApi, GogoGate2Api, ISmartGateApi
from gogogate2_api.common import AbstractDoor
@@ -71,8 +70,7 @@ def get_data_update_coordinator(
async def async_update_data():
try:
async with async_timeout.timeout(3):
return await hass.async_add_executor_job(api.info)
return await hass.async_add_executor_job(api.info)
except Exception as exception:
raise UpdateFailed(
f"Error communicating with API: {exception}"