Skip to content

Commit

Permalink
fix: missing exception import for try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Nov 9, 2022
2 parents 41a99b1 + 92af177 commit 2d4d045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/openevse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2d4d045

Please sign in to comment.