diff --git a/custom_components/solarman/api.py b/custom_components/solarman/api.py index 563d224..caa8cef 100644 --- a/custom_components/solarman/api.py +++ b/custom_components/solarman/api.py @@ -54,6 +54,8 @@ async def load(self): self.modbus = PySolarmanAsync(*self.endpoint.connection, _LOGGER, AUTO_RECONNECT, TIMINGS_SOCKET_TIMEOUT) self.device_info = await self.profile.resolve(self.get) _LOGGER.debug(self.device_info) + except TimeoutError as e: + raise TimeoutError(f"[{self.config.serial}] Device setup timed out.") from e except BaseException as e: raise Exception(f"[{self.config.serial}] Device setup failed. [{format_exception(e)}]") from e