Skip to content
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
2 changes: 1 addition & 1 deletion custom_components/victron/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _handle_coordinator_update(self) -> None:
if self.available:
data = self.description.value_fn(self.coordinator.processed_data(), self.description.slave, self.description.key)
if self.entity_type is not None and isinstance(self.entity_type, TextReadEntityType):
if data in set(self.entity_type.decodeEnum):
if data in set(item.value for item in self.entity_type.decodeEnum):
self._attr_native_value = self.entity_type.decodeEnum(data).name.split("_DUPLICATE")[0]
else:
self._attr_native_value = "NONDECODABLE"
Expand Down