diff --git a/custom_components/jablotron80/jablotron.py b/custom_components/jablotron80/jablotron.py index 1180445..a4b487d 100644 --- a/custom_components/jablotron80/jablotron.py +++ b/custom_components/jablotron80/jablotron.py @@ -888,6 +888,10 @@ def connect(self) -> None: except serial.SerialException as ex: if "timed out" in f'{ex}': LOGGER.info('Timeout, retrying') + elif "Connection refused" in f'{ex}': + 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