mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
It seems LEGO has renamed Move Hub in FW update
This commit is contained in:
parent
6ad116fe1c
commit
fc08a495b1
@ -15,7 +15,7 @@ from pylgbst.utilities import str2hex
|
||||
|
||||
log = logging.getLogger('comms')
|
||||
|
||||
LEGO_MOVE_HUB = "LEGO Move Hub"
|
||||
LEGO_MOVE_HUB = "Move Hub"
|
||||
MOVE_HUB_HW_UUID_SERV = '00001623-1212-efde-1623-785feabcd123'
|
||||
MOVE_HUB_HW_UUID_CHAR = '00001624-1212-efde-1623-785feabcd123'
|
||||
ENABLE_NOTIFICATIONS_HANDLE = 0x000f
|
||||
|
@ -100,6 +100,7 @@ class GattConnection(Connection):
|
||||
for dev in devices:
|
||||
address = dev.mac_address
|
||||
name = dev.alias()
|
||||
logging.debug("Device %s at %s", name, address)
|
||||
if (not hub_mac and name == LEGO_MOVE_HUB) or hub_mac == address:
|
||||
logging.info("Found %s at %s", name, address)
|
||||
self._device = CustomDevice(address, self._manager)
|
||||
|
Loading…
x
Reference in New Issue
Block a user