Skip to content

Commit

Permalink
Added clause for host unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
SchuesslingNicolas committed Apr 23, 2024
1 parent bf23a63 commit 18522a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/jablotron80/jablotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ def connect(self) -> None:
if "timed out" in f'{ex}':
LOGGER.info('Timeout, retrying')
elif "Connection refused" in f'{ex}':
LOGGER.info('Connection refused by remote host, retrying')
LOGGER.info('Connection refused by remote serial host, retrying')
elif "unreachable" in f'{ex}':
LOGGER.info('Remote serial host is currently unreachable, retrying')
else:
raise

Expand Down

0 comments on commit 18522a8

Please sign in to comment.