diff --git a/custom_components/victron/coordinator.py b/custom_components/victron/coordinator.py index 97d31f6..2f9f7c5 100644 --- a/custom_components/victron/coordinator.py +++ b/custom_components/victron/coordinator.py @@ -102,7 +102,7 @@ def parse_register_data(self, buffer: ReadHoldingRegistersResponse, registerInfo elif value.dataType == INT32: decoded_data[full_key] = self.decode_scaling(decoder.decode_32bit_int(), value.scale, value.unit) elif isinstance(value.dataType, STRING): - decoded_data[full_key] = decoder.decode_string(value.dataType.readLength).split(b'\x00')[0] + decoded_data[full_key] = decoder.decode_string(value.dataType.readLength).split(b'\x00')[0].decode() else: raise DecodeDataTypeUnsupported(f'Not supported dataType: {value.dataType}') return decoded_data