Skip to content

Commit

Permalink
Discard non Instant Readout data
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavdv committed Mar 13, 2023
1 parent c7f7bad commit 99fd3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/victron_ble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _start_update(self, service_info: BluetoothServiceInfo) -> None:
self.set_precision(2)

for mfr_id, mfr_data in manufacturer_data.items():
if mfr_id != 0x02E1:
if mfr_id != 0x02E1 or not mfr_data.startswith(b"\x10"):
continue
self._process_mfr_data(address, local_name, mfr_id, mfr_data, service_uuids)

Expand Down

0 comments on commit 99fd3cc

Please sign in to comment.