Skip to content

Commit

Permalink
fix: handle UnsupportedFeature exception in UpdateCoordinator (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Dec 19, 2024
1 parent b6e4cfd commit 111548b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/openevse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from homeassistant.helpers.event import async_track_state_change_event
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from openevsehttp.__main__ import OpenEVSE
from openevsehttp.exceptions import MissingSerial
from openevsehttp.exceptions import MissingSerial, UnsupportedFeature

from .const import (
BINARY_SENSORS,
Expand Down Expand Up @@ -365,7 +365,7 @@ def parse_sensors(self) -> None:
sensor_property,
_sensor[binary_sensor],
)
except (ValueError, KeyError):
except (ValueError, KeyError, UnsupportedFeature):
_LOGGER.info(
"Could not update status for %s",
binary_sensor,
Expand All @@ -383,7 +383,7 @@ def parse_sensors(self) -> None:
sensor_property,
_sensor[select],
)
except (ValueError, KeyError):
except (ValueError, KeyError, UnsupportedFeature):
_LOGGER.info(
"Could not update status for %s",
select,
Expand All @@ -401,7 +401,7 @@ def parse_sensors(self) -> None:
sensor_property,
_sensor[light],
)
except (ValueError, KeyError):
except (ValueError, KeyError, UnsupportedFeature):
_LOGGER.info(
"Could not update status for %s",
light,
Expand Down

0 comments on commit 111548b

Please sign in to comment.