Skip to content

Commit

Permalink
Merge pull request #470 from WillCodeForCats/code-quality
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
WillCodeForCats authored Nov 15, 2023
2 parents 5bcd499 + d00d425 commit 77b0921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/solaredge_modbus_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ async def _refresh_modbus_data_with_retry(
_LOGGER.debug(f"No more data refresh attempts (maximum {limit})")
raise ex

_LOGGER.debug(f"Failed data refresh attempt #{attempt}")
_LOGGER.debug(f"Failed data refresh attempt {attempt}")

attempt += 1
_LOGGER.debug(
f"Waiting {wait_ms} ms before data refresh attempt #{attempt}"
f"Waiting {wait_ms} ms before data refresh attempt {attempt}"
)
await asyncio.sleep(wait_ms / 1000)
wait_ms *= wait_ratio

0 comments on commit 77b0921

Please sign in to comment.