From 92af177f9d1fb110615ebeeb0c15d730b0a2d0a3 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 9 Nov 2022 08:10:24 -0700 Subject: [PATCH] fix: missing exception import for try catch --- custom_components/openevse/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/openevse/__init__.py b/custom_components/openevse/__init__.py index 453c12d..5992a57 100644 --- a/custom_components/openevse/__init__.py +++ b/custom_components/openevse/__init__.py @@ -12,6 +12,7 @@ from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from openevsehttp import OpenEVSE +from openevsehttp.exceptions import MissingSerial from .const import ( BINARY_SENSORS, @@ -100,7 +101,7 @@ async def get_firmware(manager: OpenEVSEManager) -> tuple: try: data = await manager.test_and_get() - except OpenEVSE.MissingSerial as error: + except MissingSerial as error: _LOGGER.info("Missing serial number data, skipping...") if data is not None: