Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle UnsupportedFeature exception in UpdateCoordinator #413

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading