def centralManager_didDisconnectPeripheral_error_(self, manager, peripheral, error):
logger.debug('<STR_LIT>')<EOL>device = device_list().get(peripheral)<EOL>if device is not None:<EOL><INDENT>device._set_disconnected()<EOL>device_list().remove(peripheral)<EOL><DEDENT>
Called when a device is disconnected.