mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Fix ruff complaints in control4 (#116058)
This commit is contained in:
@@ -52,8 +52,7 @@ async def call_c4_api_retry(func, *func_args):
|
||||
"""Call C4 API function and retry on failure."""
|
||||
for i in range(API_RETRY_TIMES):
|
||||
try:
|
||||
output = await func(*func_args)
|
||||
return output
|
||||
return await func(*func_args)
|
||||
except client_exceptions.ClientError as exception:
|
||||
_LOGGER.error("Error connecting to Control4 account API: %s", exception)
|
||||
if i == API_RETRY_TIMES - 1:
|
||||
|
Reference in New Issue
Block a user