1
0
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:
Andrey Pokhilko 2019-08-14 11:04:58 +03:00
parent 6ad116fe1c
commit fc08a495b1
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)