|
@@ -632,6 +632,8 @@ async def unbindOtherDevices(user, newDevice, ast):
|
|
|
devices = await amiDBGet('AMPUSER', '{}/device'.format(user))
|
|
devices = await amiDBGet('AMPUSER', '{}/device'.format(user))
|
|
|
if devices not in NONEs:
|
|
if devices not in NONEs:
|
|
|
for _device in sorted(set(devices.split('&')), key=int):
|
|
for _device in sorted(set(devices.split('&')), key=int):
|
|
|
|
|
+ if _device == user:
|
|
|
|
|
+ continue
|
|
|
if _device != newDevice:
|
|
if _device != newDevice:
|
|
|
if ast.FMDEVSTATE == 'TRUE':
|
|
if ast.FMDEVSTATE == 'TRUE':
|
|
|
await amiSetVar('DEVICE_STATE(Custom:FOLLOWME{})'.format(_device), 'INVALID')
|
|
await amiSetVar('DEVICE_STATE(Custom:FOLLOWME{})'.format(_device), 'INVALID')
|