Skip to content

Commit

Permalink
Increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoung committed Jul 11, 2024
1 parent 21c61ba commit 08da8ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/watersmart/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str,
)

try:
async with timeout(10):
async with timeout(30):
account_number = await client.async_get_account_number()
except (ClientConnectorError, TimeoutError, ClientError) as error:
raise CannotConnect from error
Expand Down
2 changes: 1 addition & 1 deletion custom_components/watersmart/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(
async def _async_update_data(self) -> list[dict[str, Any]]:
"""Update data via library."""
try:
async with timeout(10):
async with timeout(30):
result = {
"hourly": await self.watersmart.async_get_hourly_data(),
}
Expand Down

0 comments on commit 08da8ec

Please sign in to comment.