Skip to content

Commit

Permalink
BLE JK BMS model recognition (#462)
Browse files Browse the repository at this point in the history
* * Other JK BMS’ have an underscore in their vendor_id
* Don’t forget to include your new PageLynxIonIo in the build lis

* build list is removed upstream

---------

Co-authored-by: Tristan Crichton <stan@tcrichton.co.uk>
  • Loading branch information
tcrichton and Tristan Crichton committed Mar 27, 2023
1 parent a668a24 commit 3f67884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/dbus-serialbattery/jkbms_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_connection(self):
if status is None:
return False

if not status["device_info"]["vendor_id"].startswith("JK-"):
if not status["device_info"]["vendor_id"].startswith(("JK-", "JK_")):
return False

logger.info("JK BMS found!")
Expand Down

0 comments on commit 3f67884

Please sign in to comment.