Skip to content

Commit 18522a8

Browse files
Added clause for host unreachable
1 parent bf23a63 commit 18522a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

custom_components/jablotron80/jablotron.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,9 @@ def connect(self) -> None:
889889
if "timed out" in f'{ex}':
890890
LOGGER.info('Timeout, retrying')
891891
elif "Connection refused" in f'{ex}':
892-
LOGGER.info('Connection refused by remote host, retrying')
892+
LOGGER.info('Connection refused by remote serial host, retrying')
893+
elif "unreachable" in f'{ex}':
894+
LOGGER.info('Remote serial host is currently unreachable, retrying')
893895
else:
894896
raise
895897

0 commit comments

Comments
 (0)