From 24e7e5230185f314905f8ec8d89aa330afdd7ab5 Mon Sep 17 00:00:00 2001 From: epenet Date: Tue, 20 Aug 2019 11:07:51 +0200 Subject: [PATCH] Fix exception type --- custom_components/resolvbus/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/resolvbus/sensor.py b/custom_components/resolvbus/sensor.py index 6d8f8a0..bc3e92f 100644 --- a/custom_components/resolvbus/sensor.py +++ b/custom_components/resolvbus/sensor.py @@ -126,7 +126,7 @@ async def async_update(self): elif self._ttyPort is not None: buffer = await self.async_readFromSerial(self._ttyPort, self._filterSource, self._filterDestination, self._filterCommand) self.process_buffer(buffer) - except VBUSPacketException as e: + except Exception as e: _LOGGER.error("Update failed: %s" % e) async def async_readFromSerial(self, port, source=None, destination=None, command=None):