We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9c696e + 6927b0d commit 25c2b00Copy full SHA for 25c2b00
custom_components/victron/sensor.py
@@ -156,7 +156,7 @@ def _handle_coordinator_update(self) -> None:
156
if self.available:
157
data = self.description.value_fn(self.coordinator.processed_data(), self.description.slave, self.description.key)
158
if self.entity_type is not None and isinstance(self.entity_type, TextReadEntityType):
159
- if data in set(self.entity_type.decodeEnum):
+ if data in set(item.value for item in self.entity_type.decodeEnum):
160
self._attr_native_value = self.entity_type.decodeEnum(data).name.split("_DUPLICATE")[0]
161
else:
162
self._attr_native_value = "NONDECODABLE"
0 commit comments