Skip to content

Commit

Permalink
Fix linter waring for apsystemsapi
Browse files Browse the repository at this point in the history
  • Loading branch information
mawoka-myblock committed Apr 28, 2024
1 parent 8b836dc commit 3901288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/apsystemsapi_local/coordinator.py
Expand Up @@ -41,8 +41,7 @@ def __init__(

async def _async_update_data(self) -> ReturnOutputData | None: # type: ignore[override]
try:
data = await self.api.get_output_data()
return data # noqa: TRY300
return await self.api.get_output_data()
except (TimeoutError, client_exceptions.ClientConnectionError):
# raise InverterNotAvailable
raise InverterNotAvailable from None
Expand Down

0 comments on commit 3901288

Please sign in to comment.